| 1 | #!/usr/bin/perl | ||
| 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::Operator::Assignment; | ||
| 6 | 38 | ▶ | use base 'WWW::Shopify::Liquid::Operator'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 38 | ▶ | 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 | 0 | ▶ | sub optimize { |
|
Subroutine
optimize: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 13 | 0 | my ($self, $optimizer) = (shift, shift); | |
| 14 | 0 | $self->SUPER::optimize($self, $optimizer, @_); | |
| 15 | 0 | return $self; | |
| 16 | } | ||
| 17 | |||
| 18 | 0 | ▶ | sub operate { |
|
Subroutine
operate: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 19 | 0 | ▶ | return first { ($_ cmp $_[4]) == 0 } ref($_[3]) eq "ARRAY"; |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 20 | 0 | return index($_[3], $_[4]) != -1; | |
| 21 | } | ||
| 22 | |||
| 23 | 38 | 1; | |