| 1 | package Text::Nunjucks::Nodes::FilterAsync; | ||
| 2 | # ABSTRACT: AST node FilterAsync (fields name, args, symbol), ported from nodes.js | ||
| 3 | |||
| 4 | 20 | our $VERSION = '0.001'; | |
| 5 | |||
| 6 | 20 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 20 | ▶ | use namespace::autoclean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 20 | extends 'Text::Nunjucks::Nodes::Filter'; | |
| 10 | |||
| 11 | # nodes.js: const FilterAsync = Filter.extend('FilterAsync', { fields: ['name', 'args', 'symbol'] }); | ||
| 12 | # name and args are inherited from Filter; the accessor for symbol is new. | ||
| 13 | |||
| 14 | 20 | has symbol => ( is => 'rw' ); | |
| 15 | |||
| 16 | 131 | ▶ | sub typename { 'FilterAsync' } |
|
Subroutine
typename: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 17 | 568 | ▶ | sub fields { [ 'name', 'args', 'symbol' ] } |
|
Subroutine
fields: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 18 | |||
| 19 | 20 | 1; | |
| 20 | |||
| 21 | __END__ | ||