| 1 | package Text::Nunjucks::Nodes::Super; | ||
| 2 | # ABSTRACT: AST node Super (fields blockName, 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::Node'; | |
| 10 | |||
| 11 | # nodes.js: const Super = Node.extend('Super', { fields: ['blockName', 'symbol'] }); | ||
| 12 | |||
| 13 | 20 | has blockName => ( is => 'rw' ); | |
| 14 | 20 | has symbol => ( is => 'rw' ); | |
| 15 | |||
| 16 | 271 | ▶ | sub typename { 'Super' } |
|
Subroutine
typename: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 17 | 1081 | ▶ | sub fields { [ 'blockName', 'symbol' ] } |
|
Subroutine
fields: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 18 | |||
| 19 | 20 | 1; | |
| 20 | |||
| 21 | __END__ | ||