line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Tangerine::hook::package; |
2
|
|
|
|
|
|
|
$Tangerine::hook::package::VERSION = '0.20'; |
3
|
15
|
|
|
15
|
|
1208
|
use strict; |
|
15
|
|
|
|
|
31
|
|
|
15
|
|
|
|
|
409
|
|
4
|
15
|
|
|
15
|
|
73
|
use warnings; |
|
15
|
|
|
|
|
27
|
|
|
15
|
|
|
|
|
496
|
|
5
|
15
|
|
|
15
|
|
10243
|
use parent 'Tangerine::Hook'; |
|
15
|
|
|
|
|
4248
|
|
|
15
|
|
|
|
|
85
|
|
6
|
15
|
|
|
15
|
|
8281
|
use Tangerine::HookData; |
|
15
|
|
|
|
|
40
|
|
|
15
|
|
|
|
|
385
|
|
7
|
15
|
|
|
15
|
|
78
|
use Tangerine::Occurence; |
|
15
|
|
|
|
|
30
|
|
|
15
|
|
|
|
|
1571
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub run { |
10
|
136
|
|
|
136
|
1
|
199
|
my ($self, $s) = @_; |
11
|
136
|
100
|
66
|
|
|
350
|
if ($s->[0] eq 'package' && scalar(@$s) > 1) { |
12
|
2
|
100
|
|
|
|
37
|
return if $s->[1] eq ';'; |
13
|
1
|
|
|
|
|
19
|
return Tangerine::HookData->new( |
14
|
|
|
|
|
|
|
modules => { |
15
|
|
|
|
|
|
|
$s->[1] => Tangerine::Occurence->new, |
16
|
|
|
|
|
|
|
}, |
17
|
|
|
|
|
|
|
); |
18
|
|
|
|
|
|
|
} |
19
|
134
|
|
|
|
|
2010
|
return; |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
1; |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
__END__ |