line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package TOML::Dumper::Context::Value::Inline; |
2
|
2
|
|
|
2
|
|
8
|
use strict; |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
52
|
|
3
|
2
|
|
|
2
|
|
8
|
use warnings; |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
55
|
|
4
|
|
|
|
|
|
|
|
5
|
2
|
|
|
2
|
|
8
|
use parent -norequire => 'TOML::Dumper::Context::Value'; |
|
2
|
|
|
|
|
1
|
|
|
2
|
|
|
|
|
10
|
|
6
|
|
|
|
|
|
|
|
7
|
2
|
|
|
2
|
|
814
|
use TOML::Dumper::String; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
205
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub as_string { |
10
|
30
|
|
|
30
|
0
|
23
|
my $self = shift; |
11
|
30
|
|
|
|
|
21
|
my $type = $self->{type}; |
12
|
30
|
|
|
|
|
23
|
my $atom = $self->{atom}; |
13
|
30
|
50
|
|
|
|
74
|
my $body = $type eq 'string' ? TOML::Dumper::String::quote($atom) |
|
|
100
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
14
|
|
|
|
|
|
|
: $type eq 'number' ? "$atom" |
15
|
|
|
|
|
|
|
: $type eq 'bool' ? $atom |
16
|
|
|
|
|
|
|
: die "Unknown type: $type"; |
17
|
30
|
|
|
|
|
51
|
return $body; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
1; |