line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Perl::PrereqScanner::NotQuiteLite::Parser::Later; |
2
|
|
|
|
|
|
|
|
3
|
83
|
|
|
83
|
|
1959
|
use strict; |
|
83
|
|
|
|
|
179
|
|
|
83
|
|
|
|
|
2266
|
|
4
|
83
|
|
|
83
|
|
410
|
use warnings; |
|
83
|
|
|
|
|
184
|
|
|
83
|
|
|
|
|
1908
|
|
5
|
83
|
|
|
83
|
|
439
|
use Perl::PrereqScanner::NotQuiteLite::Util; |
|
83
|
|
|
|
|
190
|
|
|
83
|
|
|
|
|
19665
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
sub register { return { |
8
|
82
|
|
|
82
|
0
|
489
|
use => { |
9
|
|
|
|
|
|
|
'later' => 'parse_later_args', |
10
|
|
|
|
|
|
|
}, |
11
|
|
|
|
|
|
|
}} |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub parse_later_args { |
14
|
2
|
|
|
2
|
0
|
7
|
my ($class, $c, $used_module, $raw_tokens) = @_; |
15
|
|
|
|
|
|
|
|
16
|
2
|
|
|
|
|
8
|
my $tokens = convert_string_tokens($raw_tokens); |
17
|
2
|
50
|
|
|
|
10
|
if (is_version($tokens->[0])) { |
18
|
0
|
|
|
|
|
0
|
$c->add($used_module => shift @$tokens); |
19
|
|
|
|
|
|
|
} |
20
|
2
|
|
|
|
|
5
|
my $module = $tokens->[0]; |
21
|
2
|
50
|
|
|
|
7
|
if (ref $module) { |
22
|
0
|
|
|
|
|
0
|
$module = $module->[0]; |
23
|
|
|
|
|
|
|
} |
24
|
2
|
50
|
|
|
|
13
|
if (is_module_name($module)) { |
25
|
2
|
|
|
|
|
9
|
$c->add_recommendation($module => 0); |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
1; |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
__END__ |