line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package YAML::Perl::Nodes; |
2
|
10
|
|
|
10
|
|
622
|
use strict; |
|
10
|
|
|
|
|
21
|
|
|
10
|
|
|
|
|
366
|
|
3
|
10
|
|
|
10
|
|
71
|
use warnings; |
|
10
|
|
|
|
|
17
|
|
|
10
|
|
|
|
|
486
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package YAML::Perl::Node; |
6
|
10
|
|
|
10
|
|
54
|
use YAML::Perl::Base -base; |
|
10
|
|
|
|
|
17
|
|
|
10
|
|
|
|
|
96
|
|
7
|
|
|
|
|
|
|
|
8
|
10
|
|
|
10
|
|
138
|
use overload '""' => 'stringify'; |
|
10
|
|
|
|
|
24
|
|
|
10
|
|
|
|
|
190
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
field 'tag'; |
11
|
|
|
|
|
|
|
field 'value'; |
12
|
|
|
|
|
|
|
field 'start_mark'; |
13
|
|
|
|
|
|
|
field 'end_mark'; |
14
|
|
|
|
|
|
|
field 'style'; |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub stringify { |
17
|
776
|
|
|
776
|
0
|
981
|
my $self = shift; |
18
|
776
|
|
33
|
|
|
2034
|
my $class = ref($self) || $self; |
19
|
776
|
|
|
|
|
20261
|
my $value = $self->value . ""; |
20
|
776
|
|
100
|
|
|
20586
|
my $tag = ($self->tag || '') . ""; |
21
|
776
|
|
|
|
|
3950
|
return "$class(tag=$tag, value=$value)"; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
package YAML::Perl::Node::Scalar; |
25
|
10
|
|
|
10
|
|
2328
|
use YAML::Perl::Node -base; |
|
10
|
|
|
|
|
21
|
|
|
10
|
|
|
|
|
115
|
|
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
field 'style'; |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
package YAML::Perl::Node::Collection; |
30
|
10
|
|
|
10
|
|
53
|
use YAML::Perl::Node -base; |
|
10
|
|
|
|
|
20
|
|
|
10
|
|
|
|
|
48
|
|
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
field 'flow_style'; |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
package YAML::Perl::Node::Sequence; |
35
|
10
|
|
|
10
|
|
66
|
use YAML::Perl::Node::Collection -base; |
|
10
|
|
|
|
|
27
|
|
|
10
|
|
|
|
|
120
|
|
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
field id => 'sequence'; |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
package YAML::Perl::Node::Mapping; |
40
|
10
|
|
|
10
|
|
63
|
use YAML::Perl::Node::Collection -base; |
|
10
|
|
|
|
|
22
|
|
|
10
|
|
|
|
|
54
|
|
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
field id => 'mapping'; |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
1; |