line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package DTL::Fast::Expression::Operator::Unary; |
2
|
11
|
|
|
11
|
|
3969
|
use strict; |
|
11
|
|
|
|
|
22
|
|
|
11
|
|
|
|
|
251
|
|
3
|
11
|
|
|
11
|
|
45
|
use utf8; |
|
11
|
|
|
|
|
21
|
|
|
11
|
|
|
|
|
44
|
|
4
|
11
|
|
|
11
|
|
212
|
use warnings FATAL => 'all'; |
|
11
|
|
|
|
|
21
|
|
|
11
|
|
|
|
|
324
|
|
5
|
11
|
|
|
11
|
|
53
|
use parent 'DTL::Fast::Entity'; |
|
11
|
|
|
|
|
19
|
|
|
11
|
|
|
|
|
52
|
|
6
|
|
|
|
|
|
|
|
7
|
11
|
|
|
11
|
|
581
|
use DTL::Fast::Template; |
|
11
|
|
|
|
|
22
|
|
|
11
|
|
|
|
|
1400
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub new |
10
|
|
|
|
|
|
|
{ |
11
|
216
|
|
|
216
|
0
|
517
|
my ( $proto, $argument, %kwargs ) = @_; |
12
|
216
|
|
|
|
|
401
|
$kwargs{a} = $argument; |
13
|
|
|
|
|
|
|
|
14
|
216
|
|
|
|
|
728
|
return $proto->SUPER::new(%kwargs); |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub render |
18
|
|
|
|
|
|
|
{ |
19
|
0
|
|
|
0
|
0
|
|
my ( $self, $context) = @_; |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
return $self->dispatch( |
22
|
0
|
|
|
|
|
|
$self->{a}->render($context, 1) |
23
|
|
|
|
|
|
|
, $context |
24
|
|
|
|
|
|
|
); |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub dispatch |
28
|
|
|
|
|
|
|
{ |
29
|
0
|
|
|
0
|
0
|
|
my ( $self, $arg1 ) = @_; |
30
|
0
|
|
|
|
|
|
die 'Abstract method dispatch was not overriden in subclass '.(ref $self); |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
1; |