line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
2
|
|
|
2
|
|
94508
|
use strict; use warnings; |
|
2
|
|
|
2
|
|
13
|
|
|
2
|
|
|
|
|
50
|
|
|
2
|
|
|
|
|
9
|
|
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
59
|
|
2
|
|
|
|
|
|
|
package YAML::Marshall; |
3
|
|
|
|
|
|
|
|
4
|
2
|
|
|
2
|
|
350
|
use YAML::Node (); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
71
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
sub import { |
7
|
4
|
|
|
4
|
|
97
|
my $class = shift; |
8
|
2
|
|
|
2
|
|
13
|
no strict 'refs'; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
154
|
|
9
|
4
|
|
|
|
|
8
|
my $package = caller; |
10
|
4
|
50
|
|
|
|
5
|
unless (grep { $_ eq $class} @{$package . '::ISA'}) { |
|
3
|
|
|
|
|
13
|
|
|
4
|
|
|
|
|
16
|
|
11
|
4
|
|
|
|
|
6
|
push @{$package . '::ISA'}, $class; |
|
4
|
|
|
|
|
33
|
|
12
|
|
|
|
|
|
|
} |
13
|
|
|
|
|
|
|
|
14
|
4
|
|
|
|
|
11
|
my $tag = shift; |
15
|
4
|
100
|
|
|
|
1446
|
if ( $tag ) { |
16
|
2
|
|
|
2
|
|
11
|
no warnings 'once'; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
163
|
|
17
|
1
|
|
|
|
|
2
|
$YAML::TagClass->{$tag} = $package; |
18
|
1
|
|
|
|
|
2
|
${$package . "::YamlTag"} = $tag; |
|
1
|
|
|
|
|
43
|
|
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub yaml_dump { |
23
|
3
|
|
|
3
|
0
|
12
|
my $self = shift; |
24
|
2
|
|
|
2
|
|
12
|
no strict 'refs'; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
332
|
|
25
|
3
|
|
66
|
|
|
4
|
my $tag = ${ref($self) . "::YamlTag"} || 'perl/' . ref($self); |
26
|
3
|
|
|
|
|
10
|
$self->yaml_node($self, $tag); |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
sub yaml_load { |
30
|
2
|
|
|
2
|
0
|
10
|
my ($class, $node) = @_; |
31
|
2
|
50
|
|
|
|
10
|
if (my $ynode = $class->yaml_ynode($node)) { |
32
|
2
|
|
|
|
|
4
|
$node = $ynode->{NODE}; |
33
|
|
|
|
|
|
|
} |
34
|
2
|
|
|
|
|
8
|
bless $node, $class; |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
sub yaml_node { |
38
|
4
|
|
|
4
|
0
|
24
|
shift; |
39
|
4
|
|
|
|
|
14
|
YAML::Node->new(@_); |
40
|
|
|
|
|
|
|
} |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
sub yaml_ynode { |
43
|
2
|
|
|
2
|
0
|
3
|
shift; |
44
|
2
|
|
|
|
|
5
|
YAML::Node::ynode(@_); |
45
|
|
|
|
|
|
|
} |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
1; |