line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Parse::ErrorString::Perl::ErrorItem; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
|
4
|
6
|
|
|
6
|
|
97
|
use strict; |
|
6
|
|
|
|
|
18
|
|
|
6
|
|
|
|
|
268
|
|
5
|
6
|
|
|
6
|
|
45
|
use warnings; |
|
6
|
|
|
|
|
19
|
|
|
6
|
|
|
|
|
562
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = '0.26'; |
8
|
|
|
|
|
|
|
|
9
|
6
|
|
|
|
|
104
|
use Class::XSAccessor getters => { |
10
|
|
|
|
|
|
|
type => 'type', |
11
|
|
|
|
|
|
|
type_description => 'type_description', |
12
|
|
|
|
|
|
|
message => 'message', |
13
|
|
|
|
|
|
|
file => 'file', |
14
|
|
|
|
|
|
|
file_abspath => 'file_abspath', |
15
|
|
|
|
|
|
|
file_msgpath => 'file_msgpath', |
16
|
|
|
|
|
|
|
line => 'line', |
17
|
|
|
|
|
|
|
near => 'near', |
18
|
|
|
|
|
|
|
diagnostics => 'diagnostics', |
19
|
|
|
|
|
|
|
at => 'at', |
20
|
6
|
|
|
6
|
|
4537
|
}; |
|
6
|
|
|
|
|
19687
|
|
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub new { |
23
|
22
|
|
|
22
|
0
|
84
|
my ( $class, $self ) = @_; |
24
|
22
|
|
33
|
|
|
150
|
bless $self, ref $class || $class; |
25
|
22
|
|
|
|
|
86
|
return $self; |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
sub stack { |
29
|
1
|
|
|
1
|
1
|
772
|
my $self = shift; |
30
|
1
|
50
|
|
|
|
9
|
return $self->{stack} ? @{ $self->{stack} } : undef; |
|
1
|
|
|
|
|
5
|
|
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
1; |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
__END__ |