| 1 | #!/usr/bin/perl | ||
| 2 | 30 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 30 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | package WWW::Shopify::Liquid::Operator::Assignment; | ||
| 6 | 30 | ▶ | use base 'WWW::Shopify::Liquid::Operator'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 30 | ▶ | use List::Util qw(first); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | 0 | ▶ | sub symbol { return '='; } |
|
Subroutine
symbol: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 9 | 0 | ▶ | sub priority { return 1; } |
|
Subroutine
priority: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 10 | # Can't optimize this away; it's generally necessary for assignment tags, so we just assume taht this is always going to be there. | ||
| 11 | |||
| 12 | sub optimize { | ||
| 13 | 0 | ▶ | my ($self, $optimizer) = (shift, shift); |
|
Subroutine
optimize: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 14 | 0 | $self->SUPER::optimize($self, $optimizer, @_); | |
| 15 | 0 | print STDERR "A\n"; | |
| 16 | 0 | return $self; | |
| 17 | } | ||
| 18 | |||
| 19 | sub operate { | ||
| 20 | 0 | ▶ | return first { ($_ cmp $_[4]) == 0 } ref($_[3]) eq "ARRAY"; |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
Subroutine
operate: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 21 | 0 | return index($_[3], $_[4]) != -1; | |
| 22 | } | ||
| 23 | |||
| 24 | 30 | 1; | |