line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Perl::PrereqScanner::NotQuiteLite::Parser::Mixin; |
2
|
|
|
|
|
|
|
|
3
|
83
|
|
|
83
|
|
1403
|
use strict; |
|
83
|
|
|
|
|
180
|
|
|
83
|
|
|
|
|
2281
|
|
4
|
83
|
|
|
83
|
|
394
|
use warnings; |
|
83
|
|
|
|
|
182
|
|
|
83
|
|
|
|
|
1903
|
|
5
|
83
|
|
|
83
|
|
424
|
use Perl::PrereqScanner::NotQuiteLite::Util; |
|
83
|
|
|
|
|
167
|
|
|
83
|
|
|
|
|
19016
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
sub register { return { |
8
|
82
|
|
|
82
|
0
|
462
|
use => { |
9
|
|
|
|
|
|
|
mixin => 'parse_mixin_args', |
10
|
|
|
|
|
|
|
}, |
11
|
|
|
|
|
|
|
}} |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub parse_mixin_args { |
14
|
1
|
|
|
1
|
0
|
19
|
my ($class, $c, $used_module, $raw_tokens) = @_; |
15
|
|
|
|
|
|
|
|
16
|
1
|
|
|
|
|
6
|
my $tokens = convert_string_tokens($raw_tokens); |
17
|
1
|
50
|
|
|
|
6
|
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
|
|
|
|
|
11
|
|
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
1; |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
__END__ |