line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
6
|
|
|
6
|
|
4658
|
use strict; |
|
6
|
|
|
|
|
11
|
|
|
6
|
|
|
|
|
202
|
|
2
|
6
|
|
|
6
|
|
31
|
use warnings; |
|
6
|
|
|
|
|
20
|
|
|
6
|
|
|
|
|
292
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
package MetaPOD::Format::JSON::inherits::v1; |
5
|
|
|
|
|
|
|
BEGIN { |
6
|
6
|
|
|
6
|
|
176
|
$MetaPOD::Format::JSON::inherits::v1::AUTHORITY = 'cpan:KENTNL'; |
7
|
|
|
|
|
|
|
} |
8
|
|
|
|
|
|
|
{ |
9
|
|
|
|
|
|
|
$MetaPOD::Format::JSON::inherits::v1::VERSION = '0.3.0'; |
10
|
|
|
|
|
|
|
} |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
# ABSTRACT: Implementation of JSON/inherits format component |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
|
15
|
6
|
|
|
6
|
|
751
|
use Moo::Role; |
|
6
|
|
|
|
|
22834
|
|
|
6
|
|
|
|
|
35
|
|
16
|
6
|
|
|
6
|
|
1879
|
use Carp qw(croak); |
|
6
|
|
|
|
|
12
|
|
|
6
|
|
|
|
|
1011
|
|
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub add_inherits { |
20
|
7
|
|
|
7
|
1
|
16
|
my ( $self, $inherits, $result ) = @_; |
21
|
7
|
100
|
66
|
|
|
51
|
if ( defined $inherits and not ref $inherits ) { |
22
|
5
|
|
|
|
|
22
|
return $result->add_inherits($inherits); |
23
|
|
|
|
|
|
|
} |
24
|
2
|
50
|
33
|
|
|
12
|
if ( defined $inherits and ref $inherits eq 'ARRAY' ) { |
25
|
2
|
|
|
|
|
4
|
return $result->add_inherits( @{$inherits} ); |
|
2
|
|
|
|
|
11
|
|
26
|
|
|
|
|
|
|
} |
27
|
0
|
|
|
|
|
|
croak 'Unsupported reftype ' . ref $inherits; |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
1; |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
__END__ |