line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Perl::PrereqScanner::NotQuiteLite::Parser::Mixin; |
2
|
|
|
|
|
|
|
|
3
|
82
|
|
|
82
|
|
1244
|
use strict; |
|
82
|
|
|
|
|
166
|
|
|
82
|
|
|
|
|
2007
|
|
4
|
82
|
|
|
82
|
|
345
|
use warnings; |
|
82
|
|
|
|
|
157
|
|
|
82
|
|
|
|
|
1573
|
|
5
|
82
|
|
|
82
|
|
362
|
use Perl::PrereqScanner::NotQuiteLite::Util; |
|
82
|
|
|
|
|
153
|
|
|
82
|
|
|
|
|
16900
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
sub register { return { |
8
|
81
|
|
|
81
|
0
|
415
|
use => { |
9
|
|
|
|
|
|
|
mixin => 'parse_mixin_args', |
10
|
|
|
|
|
|
|
}, |
11
|
|
|
|
|
|
|
}} |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub parse_mixin_args { |
14
|
1
|
|
|
1
|
0
|
4
|
my ($class, $c, $used_module, $raw_tokens) = @_; |
15
|
|
|
|
|
|
|
|
16
|
1
|
|
|
|
|
5
|
my $tokens = convert_string_tokens($raw_tokens); |
17
|
1
|
50
|
|
|
|
5
|
if (is_version($tokens->[0])) { |
18
|
0
|
|
|
|
|
0
|
$c->add($used_module => shift @$tokens); |
19
|
|
|
|
|
|
|
} |
20
|
1
|
|
|
|
|
4
|
$c->add($_ => 0) for grep {!ref $_} @$tokens; |
|
2
|
|
|
|
|
10
|
|
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
1; |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
__END__ |