line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package DTL::Fast::Expression::Operator::Binary; |
2
|
11
|
|
|
11
|
|
3979
|
use strict; |
|
11
|
|
|
|
|
23
|
|
|
11
|
|
|
|
|
246
|
|
3
|
11
|
|
|
11
|
|
46
|
use utf8; |
|
11
|
|
|
|
|
21
|
|
|
11
|
|
|
|
|
45
|
|
4
|
11
|
|
|
11
|
|
216
|
use warnings FATAL => 'all'; |
|
11
|
|
|
|
|
21
|
|
|
11
|
|
|
|
|
290
|
|
5
|
11
|
|
|
11
|
|
49
|
use parent 'DTL::Fast::Expression::Operator::Unary'; |
|
11
|
|
|
|
|
20
|
|
|
11
|
|
|
|
|
45
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
sub new |
8
|
|
|
|
|
|
|
{ |
9
|
171
|
|
|
171
|
0
|
462
|
my ( $proto, $argument1, $argument2, %kwargs ) = @_; |
10
|
171
|
|
|
|
|
358
|
$kwargs{b} = $argument2; |
11
|
|
|
|
|
|
|
|
12
|
171
|
|
|
|
|
662
|
my $self = $proto->SUPER::new($argument1, %kwargs); |
13
|
|
|
|
|
|
|
|
14
|
171
|
|
|
|
|
749
|
return $self; |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub render |
18
|
|
|
|
|
|
|
{ |
19
|
905
|
|
|
905
|
0
|
1672
|
my ( $self, $context ) = @_; |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
return $self->dispatch( |
22
|
|
|
|
|
|
|
$self->{a}->render($context, 1) |
23
|
905
|
|
|
|
|
2476
|
, $self->{b}->render($context, 1) |
24
|
|
|
|
|
|
|
, $context |
25
|
|
|
|
|
|
|
); |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
sub dispatch |
29
|
|
|
|
|
|
|
{ |
30
|
0
|
|
|
0
|
0
|
|
my ( $self, $arg1, $arg2 ) = @_; |
31
|
0
|
|
|
|
|
|
die 'Abstract method dispatch was not overriden in subclass '.(ref $self); |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
1; |