| 1 | package Jmespath::Visitor; | ||
| 2 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | #no strict 'refs'; | ||
| 5 | |||
| 6 | sub new { | ||
| 7 | 0 | ▶ | my ($class) = @_; |
|
Subroutine
new: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 8 | 0 | my $self = bless {}, $class; | |
| 9 | 0 | $self->{_method_cache} = {}; | |
| 10 | 0 | return $self; | |
| 11 | } | ||
| 12 | |||
| 13 | sub visit { | ||
| 14 | 0 | ▶ | my ($self, $node, $args) = @_; |
|
Subroutine
visit: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 15 | 0 | my $node_type = $node->{type}; | |
| 16 | 0 | my $method = 'visit_' . $node->{type}; | |
| 17 | 0 | return &$method; | |
| 18 | } | ||
| 19 | |||
| 20 | 0 | ▶ | sub default_visit { ... } |
|
Subroutine
default_visit: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 21 | |||
| 22 | 1 | 1; | |