line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package YAML::Old::Loader::Base; |
2
|
|
|
|
|
|
|
|
3
|
26
|
|
|
26
|
|
148
|
use YAML::Old::Mo; |
|
26
|
|
|
|
|
53
|
|
|
26
|
|
|
|
|
189
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
has load_code => default => sub {0}; |
6
|
|
|
|
|
|
|
has stream => default => sub {''}; |
7
|
|
|
|
|
|
|
has document => default => sub {0}; |
8
|
|
|
|
|
|
|
has line => default => sub {0}; |
9
|
|
|
|
|
|
|
has documents => default => sub {[]}; |
10
|
|
|
|
|
|
|
has lines => default => sub {[]}; |
11
|
|
|
|
|
|
|
has eos => default => sub {0}; |
12
|
|
|
|
|
|
|
has done => default => sub {0}; |
13
|
|
|
|
|
|
|
has anchor2node => default => sub {{}}; |
14
|
|
|
|
|
|
|
has level => default => sub {0}; |
15
|
|
|
|
|
|
|
has offset => default => sub {[]}; |
16
|
|
|
|
|
|
|
has preface => default => sub {''}; |
17
|
|
|
|
|
|
|
has content => default => sub {''}; |
18
|
|
|
|
|
|
|
has indent => default => sub {0}; |
19
|
|
|
|
|
|
|
has major_version => default => sub {0}; |
20
|
|
|
|
|
|
|
has minor_version => default => sub {0}; |
21
|
|
|
|
|
|
|
has inline => default => sub {''}; |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
sub set_global_options { |
24
|
260
|
|
|
260
|
0
|
433
|
my $self = shift; |
25
|
260
|
100
|
33
|
|
|
2276
|
$self->load_code($YAML::LoadCode || $YAML::UseCode) |
|
|
|
66
|
|
|
|
|
26
|
|
|
|
|
|
|
if defined $YAML::LoadCode or defined $YAML::UseCode; |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
sub load { |
30
|
0
|
|
|
0
|
0
|
|
die 'load() not implemented in this class.'; |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
1; |