line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package YAML::Perl::Writer; |
2
|
7
|
|
|
7
|
|
39
|
use strict; |
|
7
|
|
|
|
|
15
|
|
|
7
|
|
|
|
|
235
|
|
3
|
7
|
|
|
7
|
|
41
|
use warnings; |
|
7
|
|
|
|
|
15
|
|
|
7
|
|
|
|
|
190
|
|
4
|
|
|
|
|
|
|
|
5
|
7
|
|
|
7
|
|
3825
|
use YAML::Perl::Stream; |
|
7
|
|
|
|
|
22
|
|
|
7
|
|
|
|
|
357
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
package YAML::Perl::Writer; |
8
|
7
|
|
|
7
|
|
1179
|
use YAML::Perl::Processor -base; |
|
7
|
|
|
|
|
15
|
|
|
7
|
|
|
|
|
66
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
field next_layer => ''; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
field 'stream' => -init => 'YAML::Perl::Stream::Output->new()'; |
13
|
|
|
|
|
|
|
field 'encoding'; |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub open { |
16
|
29
|
|
|
29
|
0
|
54
|
my $self = shift; |
17
|
29
|
|
|
|
|
815
|
$self->stream->open(@_); |
18
|
29
|
|
|
|
|
179
|
$self->SUPER::open(@_); |
19
|
29
|
|
|
|
|
64
|
return $self; |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub write { |
23
|
368
|
|
|
368
|
0
|
527
|
my $self = shift; |
24
|
368
|
|
|
|
|
9989
|
$self->stream->write(@_); |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
1; |