line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package TOML::Dumper::Context::Root; |
2
|
2
|
|
|
2
|
|
9
|
use strict; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
51
|
|
3
|
2
|
|
|
2
|
|
8
|
use warnings; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
61
|
|
4
|
|
|
|
|
|
|
|
5
|
2
|
|
|
2
|
|
9
|
use Class::Accessor::Lite ro => [qw/tree/]; |
|
2
|
|
|
|
|
17
|
|
|
2
|
|
|
|
|
18
|
|
6
|
|
|
|
|
|
|
|
7
|
2
|
|
|
2
|
|
871
|
use TOML::Dumper::Context::Table; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
300
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub new { |
10
|
1
|
|
|
1
|
0
|
2
|
my ($class, $object) = @_; |
11
|
1
|
|
|
|
|
13
|
return bless { |
12
|
|
|
|
|
|
|
tree => TOML::Dumper::Context::Table->new(name => [], tree => $object), |
13
|
|
|
|
|
|
|
} => $class; |
14
|
|
|
|
|
|
|
} |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub set { |
17
|
0
|
|
|
0
|
0
|
0
|
my $self = shift; |
18
|
0
|
|
|
|
|
0
|
$self->{tree}->set(@_); |
19
|
0
|
|
|
|
|
0
|
return $self; |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub remove { |
23
|
0
|
|
|
0
|
0
|
0
|
my $self = shift; |
24
|
0
|
|
|
|
|
0
|
$self->{tree}->remove(@_); |
25
|
0
|
|
|
|
|
0
|
return $self; |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
sub as_string { |
29
|
1
|
|
|
1
|
0
|
2
|
my $self = shift; |
30
|
1
|
|
|
|
|
5
|
return $self->{tree}->as_string; |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
1; |
34
|
|
|
|
|
|
|
__END__ |