line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Perl::PrereqScanner::NotQuiteLite::Parser::Aliased; |
2
|
|
|
|
|
|
|
|
3
|
82
|
|
|
82
|
|
1101
|
use strict; |
|
82
|
|
|
|
|
143
|
|
|
82
|
|
|
|
|
2279
|
|
4
|
82
|
|
|
82
|
|
343
|
use warnings; |
|
82
|
|
|
|
|
146
|
|
|
82
|
|
|
|
|
2014
|
|
5
|
82
|
|
|
82
|
|
337
|
use Perl::PrereqScanner::NotQuiteLite::Util; |
|
82
|
|
|
|
|
139
|
|
|
82
|
|
|
|
|
17805
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
sub register { return { |
8
|
81
|
|
|
81
|
0
|
458
|
use => { |
9
|
|
|
|
|
|
|
aliased => 'parse_aliased_args', |
10
|
|
|
|
|
|
|
}, |
11
|
|
|
|
|
|
|
}} |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub parse_aliased_args { |
14
|
7
|
|
|
7
|
0
|
22
|
my ($class, $c, $used_module, $raw_tokens) = @_; |
15
|
|
|
|
|
|
|
|
16
|
7
|
|
|
|
|
31
|
my $tokens = convert_string_tokens($raw_tokens); |
17
|
|
|
|
|
|
|
|
18
|
7
|
50
|
|
|
|
30
|
if (is_version($tokens->[0])) { |
19
|
0
|
|
|
|
|
0
|
$c->add($used_module => shift @$tokens); |
20
|
|
|
|
|
|
|
} |
21
|
7
|
|
|
|
|
17
|
my $module = $tokens->[0]; |
22
|
7
|
100
|
|
|
|
21
|
if (ref $module) { |
23
|
2
|
|
|
|
|
6
|
$module = $module->[0]; |
24
|
|
|
|
|
|
|
} |
25
|
7
|
100
|
|
|
|
19
|
if (is_module_name($module)) { |
26
|
6
|
|
|
|
|
21
|
$c->add($module => 0); |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
# TODO: support alias keyword? |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
1; |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
__END__ |