line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
1
|
|
|
1
|
|
447
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
24
|
|
3
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
31
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package Gentoo::Dependency::AST::Node; |
6
|
|
|
|
|
|
|
BEGIN { |
7
|
1
|
|
|
1
|
|
36
|
$Gentoo::Dependency::AST::Node::AUTHORITY = 'cpan:KENTNL'; |
8
|
|
|
|
|
|
|
} |
9
|
|
|
|
|
|
|
{ |
10
|
|
|
|
|
|
|
$Gentoo::Dependency::AST::Node::VERSION = '0.001001'; |
11
|
|
|
|
|
|
|
} |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
# ABSTRACT: An Abstract Syntax Tree Node |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
use Class::Tiny { |
18
|
7
|
|
|
|
|
188
|
children => sub { [] } |
19
|
1
|
|
|
1
|
|
4
|
}; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
24
|
|
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub add_dep { |
23
|
21
|
|
|
21
|
1
|
143
|
my ( $self, $state, $dep ) = @_; |
24
|
21
|
|
|
|
|
25
|
push @{ $self->children }, $dep; |
|
21
|
|
|
|
|
395
|
|
25
|
21
|
|
|
|
|
132
|
return; |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
sub enter_notuse_group { |
30
|
1
|
|
|
1
|
1
|
10
|
my ( $self, $state, $group ) = @_; |
31
|
1
|
|
|
|
|
2
|
push @{ $self->children }, $group; |
|
1
|
|
|
|
|
17
|
|
32
|
1
|
|
|
|
|
9
|
$state->_pushstack($group); |
33
|
1
|
|
|
|
|
2
|
return; |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
sub enter_use_group { |
38
|
5
|
|
|
5
|
1
|
40
|
my ( $self, $state, $group ) = @_; |
39
|
5
|
|
|
|
|
8
|
push @{ $self->children }, $group; |
|
5
|
|
|
|
|
111
|
|
40
|
5
|
|
|
|
|
44
|
$state->_pushstack($group); |
41
|
5
|
|
|
|
|
9
|
return; |
42
|
|
|
|
|
|
|
} |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
sub enter_or_group { |
46
|
0
|
|
|
0
|
1
|
0
|
my ( $self, $state, $group ) = @_; |
47
|
0
|
|
|
|
|
0
|
push @{ $self->children }, $group; |
|
0
|
|
|
|
|
0
|
|
48
|
0
|
|
|
|
|
0
|
$state->_pushstack($group); |
49
|
0
|
|
|
|
|
0
|
return; |
50
|
|
|
|
|
|
|
} |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
sub enter_and_group { |
54
|
0
|
|
|
0
|
1
|
0
|
my ( $self, $state, $group ) = @_; |
55
|
0
|
|
|
|
|
0
|
push @{ $self->children }, $group; |
|
0
|
|
|
|
|
0
|
|
56
|
0
|
|
|
|
|
0
|
$state->_pushstack($group); |
57
|
0
|
|
|
|
|
0
|
return; |
58
|
|
|
|
|
|
|
} |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
sub exit_group { |
62
|
6
|
|
|
6
|
1
|
58
|
my ( $self, $state ) = @_; |
63
|
6
|
|
|
|
|
16
|
$state->_popstack; |
64
|
6
|
|
|
|
|
45
|
return; |
65
|
|
|
|
|
|
|
} |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
1; |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
__END__ |