| 1 | package JQ::Lite::AST; | ||
| 2 | |||
| 3 | 182 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 182 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 1039 | ▶ | sub pipeline { |
|
Subroutine
pipeline: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 7 | 1039 | my ($class, @filters) = @_; | |
| 8 | 1039 | return bless { type => 'Pipeline', filters => [@filters] }, | |
| 9 | 'JQ::Lite::AST::Pipeline'; | ||
| 10 | } | ||
| 11 | |||
| 12 | 1528 | ▶ | sub filter { |
|
Subroutine
filter: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 13 | 1528 | my ($class, $source) = @_; | |
| 14 | 1528 | return bless { type => 'Filter', source => $source }, | |
| 15 | 'JQ::Lite::AST::Filter'; | ||
| 16 | } | ||
| 17 | |||
| 18 | package JQ::Lite::AST::Pipeline; | ||
| 19 | |||
| 20 | 182 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 21 | 182 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 22 | |||
| 23 | 1040 | ▶ | sub type { return $_[0]->{type} } |
|
Subroutine
type: called CC=1 SCAR=0.0
| |||
| 24 | 1040 | ▶ | sub filters { return @{ $_[0]->{filters} } } |
|
Subroutine
filters: called CC=1 SCAR=0.0
| |||
| 25 | |||
| 26 | package JQ::Lite::AST::Filter; | ||
| 27 | |||
| 28 | 182 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 29 | 182 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 30 | |||
| 31 | 0 | ▶ | sub type { return $_[0]->{type} } |
|
Subroutine
type: not called CC=1 SCAR=6.9
| |||
| 32 | 2057 | ▶ | sub source { return $_[0]->{source} } |
|
Subroutine
source: called CC=1 SCAR=0.0
| |||
| 33 | |||
| 34 | 182 | 1; | |