line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package AutoCode::Root; |
2
|
7
|
|
|
7
|
|
19448
|
use strict; |
|
7
|
|
|
|
|
15
|
|
|
7
|
|
|
|
|
231
|
|
3
|
7
|
|
|
7
|
|
2691
|
use AutoCode::Root0; |
|
7
|
|
|
|
|
30
|
|
|
7
|
|
|
|
|
41
|
|
4
|
|
|
|
|
|
|
our @ISA=qw(AutoCode::Root0); |
5
|
|
|
|
|
|
|
our $VERSION='0.01'; |
6
|
|
|
|
|
|
|
our $DEBUG; |
7
|
|
|
|
|
|
|
# our $debug; |
8
|
7
|
|
|
7
|
|
2857
|
use AutoCode::SymbolTableUtils; |
|
7
|
|
|
|
|
13
|
|
|
7
|
|
|
|
|
176
|
|
9
|
7
|
|
|
7
|
|
2538
|
use AutoCode::AccessorMaker; |
|
7
|
|
|
|
|
16
|
|
|
7
|
|
|
|
|
68
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub _find_super { |
12
|
40
|
|
|
40
|
|
69
|
my ($dummy, $method)=@_; |
13
|
40
|
|
33
|
|
|
160
|
my $ref=ref($dummy) || $dummy; |
14
|
7
|
|
|
7
|
|
38
|
no strict 'refs'; |
|
7
|
|
|
|
|
12
|
|
|
7
|
|
|
|
|
1350
|
|
15
|
|
|
|
|
|
|
|
16
|
40
|
|
|
|
|
56
|
foreach(@{"$ref\::ISA"}){ |
|
40
|
|
|
|
|
166
|
|
17
|
40
|
50
|
|
|
|
150
|
next if $_ eq 'UNIVERSAL'; |
18
|
40
|
100
|
|
|
|
43
|
return $_ if defined &{"$_\::$method"}; |
|
40
|
|
|
|
|
379
|
|
19
|
15
|
|
|
|
|
61
|
my $super = _find_super($_, $method); |
20
|
15
|
50
|
|
|
|
312
|
return $super if defined $super; |
21
|
|
|
|
|
|
|
} |
22
|
0
|
|
|
|
|
0
|
return undef; |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
sub debug { |
26
|
18
|
|
|
18
|
0
|
28
|
my ($class, $msg)=@_; |
27
|
18
|
50
|
|
|
|
77
|
print STDERR "[". ref($class). "]\n$msg\n" |
28
|
|
|
|
|
|
|
unless $AutoCode::Root::DEBUG==0; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
1; |