| 1 | |||||||||||
| 2 | 38 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 38 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | |||||||||||
| 5 | package WWW::Shopify::Liquid::Filter::Eval; | ||||||||||
| 6 | 38 | ▶ | use base 'WWW::Shopify::Liquid::Filter'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | 0 | ▶ | sub min_arguments { return 0; } | ||||||||
|
Subroutine
min_arguments: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 9 | 0 | ▶ | sub max_arguments { return 0; } | ||||||||
|
Subroutine
max_arguments: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 10 | |||||||||||
| 11 | |||||||||||
| 12 | 0 | ▶ | sub render { | ||||||||
|
Subroutine
render: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 13 | 0 | my ($self, $renderer, $hash) = @_; | |||||||||
| 14 | 0 | ▶ | my $operand = !$self->is_processed($self->{operand}) ? $self->{operand}->render($renderer, $hash) : $self->{operand}; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 15 | |||||||||||
| 16 | 0 | my $ast = $renderer->parent->parse_text($operand); | |||||||||
| 17 | 0 | my $clone_hash = $renderer->clone_hash; | |||||||||
| 18 | 0 | $renderer->clone_hash(0); | |||||||||
| 19 | 0 | my ($result) = $renderer->render($hash, $ast); | |||||||||
| 20 | 0 | $renderer->clone_hash($clone_hash); | |||||||||
| 21 | 0 | return $result; | |||||||||
| 22 | } | ||||||||||
| 23 | |||||||||||
| 24 | 38 | 1; | |||||||||