line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Perl::PrereqScanner::NotQuiteLite::Parser::Inline; |
2
|
|
|
|
|
|
|
|
3
|
82
|
|
|
82
|
|
1133
|
use strict; |
|
82
|
|
|
|
|
155
|
|
|
82
|
|
|
|
|
1993
|
|
4
|
82
|
|
|
82
|
|
336
|
use warnings; |
|
82
|
|
|
|
|
154
|
|
|
82
|
|
|
|
|
1619
|
|
5
|
82
|
|
|
82
|
|
347
|
use Perl::PrereqScanner::NotQuiteLite::Util; |
|
82
|
|
|
|
|
153
|
|
|
82
|
|
|
|
|
19998
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
sub register { return { |
8
|
81
|
|
|
81
|
0
|
402
|
use => { |
9
|
|
|
|
|
|
|
Inline => 'parse_inline_args', |
10
|
|
|
|
|
|
|
}, |
11
|
|
|
|
|
|
|
}} |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub parse_inline_args { |
14
|
7
|
|
|
7
|
0
|
18
|
my ($class, $c, $used_module, $raw_tokens) = @_; |
15
|
|
|
|
|
|
|
|
16
|
7
|
|
|
|
|
24
|
my $tokens = convert_string_tokens($raw_tokens); |
17
|
|
|
|
|
|
|
|
18
|
7
|
50
|
|
|
|
20
|
if (is_version($tokens->[0])) { |
19
|
0
|
|
|
|
|
0
|
$c->add($used_module => shift @$tokens); |
20
|
|
|
|
|
|
|
} |
21
|
7
|
50
|
33
|
|
|
35
|
if (ref $tokens->[0] and is_module_name($tokens->[0][0])) { |
22
|
7
|
|
|
|
|
16
|
my $module = (shift @$tokens)->[0]; |
23
|
7
|
100
|
|
|
|
22
|
if ($module eq 'with') { |
|
|
100
|
|
|
|
|
|
24
|
1
|
|
|
|
|
3
|
$module = $tokens->[1]; |
25
|
1
|
50
|
|
|
|
2
|
if (is_module_name($module)) { |
26
|
1
|
|
|
|
|
90
|
$c->add($module => 0); |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
} elsif ($module eq 'Config') { |
29
|
|
|
|
|
|
|
# Configuration only |
30
|
|
|
|
|
|
|
} else { |
31
|
5
|
|
|
|
|
20
|
$c->add("Inline::".$module => 0); |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
1; |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
__END__ |