line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Tangerine::hook::package; |
2
|
|
|
|
|
|
|
$Tangerine::hook::package::VERSION = '0.19'; |
3
|
15
|
|
|
15
|
|
888
|
use strict; |
|
15
|
|
|
|
|
25
|
|
|
15
|
|
|
|
|
485
|
|
4
|
15
|
|
|
15
|
|
65
|
use warnings; |
|
15
|
|
|
|
|
25
|
|
|
15
|
|
|
|
|
517
|
|
5
|
15
|
|
|
15
|
|
7117
|
use parent 'Tangerine::Hook'; |
|
15
|
|
|
|
|
3871
|
|
|
15
|
|
|
|
|
85
|
|
6
|
15
|
|
|
15
|
|
6559
|
use Tangerine::HookData; |
|
15
|
|
|
|
|
27
|
|
|
15
|
|
|
|
|
379
|
|
7
|
15
|
|
|
15
|
|
71
|
use Tangerine::Occurence; |
|
15
|
|
|
|
|
21
|
|
|
15
|
|
|
|
|
1304
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub run { |
10
|
132
|
|
|
132
|
1
|
539
|
my ($self, $s) = @_; |
11
|
132
|
100
|
66
|
|
|
250
|
if ($s->[0] eq 'package' && scalar(@$s) > 1) { |
12
|
2
|
100
|
|
|
|
32
|
return if $s->[1] eq ';'; |
13
|
1
|
|
|
|
|
15
|
return Tangerine::HookData->new( |
14
|
|
|
|
|
|
|
modules => { |
15
|
|
|
|
|
|
|
$s->[1] => Tangerine::Occurence->new, |
16
|
|
|
|
|
|
|
}, |
17
|
|
|
|
|
|
|
); |
18
|
|
|
|
|
|
|
} |
19
|
130
|
|
|
|
|
1396
|
return; |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
1; |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
__END__ |