line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
{ |
2
|
|
|
|
|
|
|
use strict; |
3
|
1
|
|
|
1
|
|
7
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
30
|
|
4
|
1
|
|
|
1
|
|
5
|
no warnings qw( once void ); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
30
|
|
5
|
1
|
|
|
1
|
|
5
|
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
143
|
|
6
|
|
|
|
|
|
|
our $USES_MITE = "Mite::Class"; |
7
|
|
|
|
|
|
|
our $MITE_SHIM = "Mite::Shim"; |
8
|
|
|
|
|
|
|
our $MITE_VERSION = "0.011000"; |
9
|
|
|
|
|
|
|
# Mite keywords |
10
|
|
|
|
|
|
|
BEGIN { |
11
|
|
|
|
|
|
|
my ( $SHIM, $CALLER ) = ( "Mite::Shim", "xGP" ); |
12
|
1
|
|
|
1
|
|
5
|
( *after, *around, *before, *extends, *has, *signature_for, *with ) = do { |
13
|
1
|
|
|
|
|
2
|
no warnings 'redefine'; |
14
|
|
|
|
|
|
|
( |
15
|
1
|
|
|
1
|
|
7
|
sub { $SHIM->HANDLE_after( $CALLER, "class", @_ ) }, |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
186
|
|
16
|
|
|
|
|
|
|
sub { $SHIM->HANDLE_around( $CALLER, "class", @_ ) }, |
17
|
0
|
|
|
|
|
0
|
sub { $SHIM->HANDLE_before( $CALLER, "class", @_ ) }, |
18
|
0
|
|
|
|
|
0
|
sub {}, |
19
|
0
|
|
|
|
|
0
|
sub { $SHIM->HANDLE_has( $CALLER, has => @_ ) }, |
20
|
|
|
|
|
|
|
sub { $SHIM->HANDLE_signature_for( $CALLER, "class", @_ ) }, |
21
|
0
|
|
|
|
|
0
|
sub { $SHIM->HANDLE_with( $CALLER, @_ ) }, |
22
|
0
|
|
|
|
|
0
|
); |
23
|
0
|
|
|
|
|
0
|
}; |
24
|
1
|
|
|
|
|
45
|
|
25
|
|
|
|
|
|
|
# Gather metadata for constructor and destructor |
26
|
|
|
|
|
|
|
no strict 'refs'; |
27
|
|
|
|
|
|
|
my $class = shift; $class = ref($class) || $class; |
28
|
|
|
|
|
|
|
my $linear_isa = mro::get_linear_isa( $class ); |
29
|
|
|
|
|
|
|
return { |
30
|
1
|
|
|
1
|
|
18
|
BUILD => [ |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
651
|
|
31
|
0
|
|
0
|
0
|
|
0
|
map { ( *{$_}{CODE} ) ? ( *{$_}{CODE} ) : () } |
|
0
|
|
|
|
|
0
|
|
32
|
0
|
|
|
|
|
0
|
map { "$_\::BUILD" } reverse @$linear_isa |
33
|
|
|
|
|
|
|
], |
34
|
|
|
|
|
|
|
DEMOLISH => [ |
35
|
0
|
0
|
|
|
|
0
|
map { ( *{$_}{CODE} ) ? ( *{$_}{CODE} ) : () } |
|
0
|
|
|
|
|
0
|
|
|
0
|
|
|
|
|
0
|
|
36
|
0
|
|
|
|
|
0
|
map { "$_\::DEMOLISH" } @$linear_isa |
37
|
|
|
|
|
|
|
], |
38
|
|
|
|
|
|
|
HAS_BUILDARGS => $class->can('BUILDARGS'), |
39
|
0
|
0
|
|
|
|
0
|
HAS_FOREIGNBUILDARGS => $class->can('FOREIGNBUILDARGS'), |
|
0
|
|
|
|
|
0
|
|
|
0
|
|
|
|
|
0
|
|
40
|
0
|
|
|
|
|
0
|
}; |
|
0
|
|
|
|
|
0
|
|
41
|
|
|
|
|
|
|
} |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
# Standard Moose/Moo-style constructor |
45
|
|
|
|
|
|
|
my $class = ref($_[0]) ? ref(shift) : shift; |
46
|
|
|
|
|
|
|
my $meta = ( $Mite::META{$class} ||= $class->__META__ ); |
47
|
|
|
|
|
|
|
my $self = bless {}, $class; |
48
|
|
|
|
|
|
|
my $args = $meta->{HAS_BUILDARGS} ? $class->BUILDARGS( @_ ) : { ( @_ == 1 ) ? %{$_[0]} : @_ }; |
49
|
|
|
|
|
|
|
my $no_build = delete $args->{__no_BUILD__}; |
50
|
0
|
0
|
|
0
|
|
0
|
|
51
|
0
|
|
0
|
|
|
0
|
|
52
|
0
|
|
|
|
|
0
|
|
53
|
0
|
0
|
|
|
|
0
|
# Call BUILD methods |
|
0
|
0
|
|
|
|
0
|
|
54
|
0
|
|
|
|
|
0
|
$self->BUILDALL( $args ) if ( ! $no_build and @{ $meta->{BUILD} || [] } ); |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
# Unrecognized parameters |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
return $self; |
59
|
0
|
0
|
0
|
|
|
0
|
} |
|
0
|
0
|
|
|
|
0
|
|
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
# Used by constructor to call BUILD methods |
62
|
0
|
0
|
|
|
|
0
|
my $class = ref( $_[0] ); |
|
0
|
0
|
|
|
|
0
|
|
|
0
|
0
|
|
|
|
0
|
|
|
0
|
|
|
|
|
0
|
|
|
0
|
|
|
|
|
0
|
|
63
|
|
|
|
|
|
|
my $meta = ( $Mite::META{$class} ||= $class->__META__ ); |
64
|
0
|
|
|
|
|
0
|
$_->( @_ ) for @{ $meta->{BUILD} || [] }; |
65
|
|
|
|
|
|
|
} |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
# Destructor should call DEMOLISH methods |
68
|
|
|
|
|
|
|
my $self = shift; |
69
|
0
|
|
|
0
|
|
0
|
my $class = ref( $self ) || $self; |
70
|
0
|
|
0
|
|
|
0
|
my $meta = ( $Mite::META{$class} ||= $class->__META__ ); |
71
|
0
|
0
|
|
|
|
0
|
my $in_global_destruction = defined ${^GLOBAL_PHASE} |
|
0
|
|
|
|
|
0
|
|
72
|
|
|
|
|
|
|
? ${^GLOBAL_PHASE} eq 'DESTRUCT' |
73
|
|
|
|
|
|
|
: Devel::GlobalDestruction::in_global_destruction(); |
74
|
|
|
|
|
|
|
for my $demolisher ( @{ $meta->{DEMOLISH} || [] } ) { |
75
|
|
|
|
|
|
|
my $e = do { |
76
|
0
|
|
|
0
|
|
0
|
local ( $?, $@ ); |
77
|
0
|
|
0
|
|
|
0
|
eval { $demolisher->( $self, $in_global_destruction ) }; |
78
|
0
|
|
0
|
|
|
0
|
$@; |
79
|
0
|
0
|
|
|
|
0
|
}; |
80
|
|
|
|
|
|
|
no warnings 'misc'; # avoid (in cleanup) warnings |
81
|
|
|
|
|
|
|
die $e if $e; # rethrow |
82
|
0
|
0
|
|
|
|
0
|
} |
|
0
|
|
|
|
|
0
|
|
83
|
0
|
|
|
|
|
0
|
return; |
84
|
0
|
|
|
|
|
0
|
} |
85
|
0
|
|
|
|
|
0
|
|
|
0
|
|
|
|
|
0
|
|
86
|
0
|
|
|
|
|
0
|
|
87
|
|
|
|
|
|
|
# See UNIVERSAL |
88
|
1
|
|
|
1
|
|
7
|
my ( $self, $role ) = @_; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
276
|
|
89
|
0
|
0
|
|
|
|
0
|
our %DOES; |
90
|
|
|
|
|
|
|
return $DOES{$role} if exists $DOES{$role}; |
91
|
0
|
|
|
|
|
0
|
return 1 if $role eq __PACKAGE__; |
92
|
|
|
|
|
|
|
if ( $INC{'Moose/Util.pm'} and my $meta = Moose::Util::find_meta( ref $self or $self ) ) { |
93
|
|
|
|
|
|
|
$meta->can( 'does_role' ) and $meta->does_role( $role ) and return 1; |
94
|
|
|
|
|
|
|
} |
95
|
|
|
|
|
|
|
return $self->SUPER::DOES( $role ); |
96
|
|
|
|
|
|
|
} |
97
|
28
|
|
|
28
|
|
38
|
|
98
|
28
|
|
|
|
|
27
|
# Alias for Moose/Moo-compatibility |
99
|
28
|
50
|
|
|
|
41
|
shift->DOES( @_ ); |
100
|
28
|
50
|
|
|
|
50
|
} |
101
|
28
|
50
|
0
|
|
|
46
|
|
|
|
|
33
|
|
|
|
|
102
|
0
|
0
|
0
|
|
|
0
|
1; |
103
|
|
|
|
|
|
|
use strict; |
104
|
28
|
|
|
|
|
132
|
use warnings; |
105
|
|
|
|
|
|
|
no warnings qw( once void ); |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
our $USES_MITE = "Mite::Class"; |
108
|
|
|
|
|
|
|
our $MITE_SHIM = "Mite::Shim"; |
109
|
7
|
|
|
7
|
|
2080
|
our $MITE_VERSION = "0.011000"; |
110
|
|
|
|
|
|
|
# Mite keywords |
111
|
|
|
|
|
|
|
BEGIN { |
112
|
|
|
|
|
|
|
my ( $SHIM, $CALLER ) = ( "Mite::Shim", "xP1" ); |
113
|
|
|
|
|
|
|
( *after, *around, *before, *extends, *has, *signature_for, *with ) = do { |
114
|
|
|
|
|
|
|
no warnings 'redefine'; |
115
|
1
|
|
|
1
|
|
7
|
( |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
34
|
|
116
|
1
|
|
|
1
|
|
5
|
sub { $SHIM->HANDLE_after( $CALLER, "class", @_ ) }, |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
27
|
|
117
|
1
|
|
|
1
|
|
4
|
sub { $SHIM->HANDLE_around( $CALLER, "class", @_ ) }, |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
129
|
|
118
|
|
|
|
|
|
|
sub { $SHIM->HANDLE_before( $CALLER, "class", @_ ) }, |
119
|
|
|
|
|
|
|
sub {}, |
120
|
|
|
|
|
|
|
sub { $SHIM->HANDLE_has( $CALLER, has => @_ ) }, |
121
|
|
|
|
|
|
|
sub { $SHIM->HANDLE_signature_for( $CALLER, "class", @_ ) }, |
122
|
|
|
|
|
|
|
sub { $SHIM->HANDLE_with( $CALLER, @_ ) }, |
123
|
|
|
|
|
|
|
); |
124
|
1
|
|
|
1
|
|
6
|
}; |
125
|
1
|
|
|
|
|
2
|
|
126
|
|
|
|
|
|
|
|
127
|
1
|
|
|
1
|
|
6
|
BEGIN { |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
194
|
|
128
|
|
|
|
|
|
|
|
129
|
0
|
|
|
|
|
0
|
|
130
|
0
|
|
|
|
|
0
|
use mro 'c3'; |
131
|
0
|
|
|
|
|
0
|
our @ISA; |
132
|
|
|
|
|
|
|
push @ISA, "xGP"; |
133
|
0
|
|
|
|
|
0
|
} |
134
|
0
|
|
|
|
|
0
|
|
135
|
0
|
|
|
|
|
0
|
|
136
|
1
|
|
|
|
|
43
|
# See UNIVERSAL |
137
|
|
|
|
|
|
|
my ( $self, $role ) = @_; |
138
|
|
|
|
|
|
|
our %DOES; |
139
|
|
|
|
|
|
|
return $DOES{$role} if exists $DOES{$role}; |
140
|
|
|
|
|
|
|
return 1 if $role eq __PACKAGE__; |
141
|
|
|
|
|
|
|
if ( $INC{'Moose/Util.pm'} and my $meta = Moose::Util::find_meta( ref $self or $self ) ) { |
142
|
|
|
|
|
|
|
$meta->can( 'does_role' ) and $meta->does_role( $role ) and return 1; |
143
|
|
|
|
|
|
|
} |
144
|
1
|
|
|
1
|
|
7
|
return $self->SUPER::DOES( $role ); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
19
|
|
145
|
1
|
|
|
1
|
|
40
|
} |
146
|
1
|
|
|
|
|
225
|
|
147
|
|
|
|
|
|
|
# Alias for Moose/Moo-compatibility |
148
|
|
|
|
|
|
|
shift->DOES( @_ ); |
149
|
|
|
|
|
|
|
} |
150
|
|
|
|
|
|
|
|
151
|
|
|
|
|
|
|
1; |
152
|
14
|
|
|
14
|
|
19
|
use strict; |
153
|
14
|
|
|
|
|
14
|
use warnings; |
154
|
14
|
50
|
|
|
|
21
|
no warnings qw( once void ); |
155
|
14
|
50
|
|
|
|
19
|
|
156
|
14
|
50
|
0
|
|
|
26
|
our $USES_MITE = "Mite::Class"; |
|
|
|
33
|
|
|
|
|
157
|
0
|
0
|
0
|
|
|
0
|
our $MITE_SHIM = "Mite::Shim"; |
158
|
|
|
|
|
|
|
our $MITE_VERSION = "0.011000"; |
159
|
14
|
|
|
|
|
21
|
# Mite keywords |
160
|
|
|
|
|
|
|
BEGIN { |
161
|
|
|
|
|
|
|
my ( $SHIM, $CALLER ) = ( "Mite::Shim", "xP2" ); |
162
|
|
|
|
|
|
|
( *after, *around, *before, *extends, *has, *signature_for, *with ) = do { |
163
|
|
|
|
|
|
|
no warnings 'redefine'; |
164
|
7
|
|
|
7
|
|
591
|
( |
165
|
|
|
|
|
|
|
sub { $SHIM->HANDLE_after( $CALLER, "class", @_ ) }, |
166
|
|
|
|
|
|
|
sub { $SHIM->HANDLE_around( $CALLER, "class", @_ ) }, |
167
|
|
|
|
|
|
|
sub { $SHIM->HANDLE_before( $CALLER, "class", @_ ) }, |
168
|
|
|
|
|
|
|
sub {}, |
169
|
|
|
|
|
|
|
sub { $SHIM->HANDLE_has( $CALLER, has => @_ ) }, |
170
|
1
|
|
|
1
|
|
8
|
sub { $SHIM->HANDLE_signature_for( $CALLER, "class", @_ ) }, |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
21
|
|
171
|
1
|
|
|
1
|
|
4
|
sub { $SHIM->HANDLE_with( $CALLER, @_ ) }, |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
35
|
|
172
|
1
|
|
|
1
|
|
5
|
); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
124
|
|
173
|
|
|
|
|
|
|
}; |
174
|
|
|
|
|
|
|
|
175
|
|
|
|
|
|
|
|
176
|
|
|
|
|
|
|
BEGIN { |
177
|
|
|
|
|
|
|
|
178
|
|
|
|
|
|
|
|
179
|
1
|
|
|
1
|
|
4
|
use mro 'c3'; |
180
|
1
|
|
|
|
|
2
|
our @ISA; |
181
|
|
|
|
|
|
|
push @ISA, "xGP"; |
182
|
1
|
|
|
1
|
|
7
|
} |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
175
|
|
183
|
|
|
|
|
|
|
|
184
|
0
|
|
|
|
|
0
|
|
185
|
0
|
|
|
|
|
0
|
# See UNIVERSAL |
186
|
0
|
|
|
|
|
0
|
my ( $self, $role ) = @_; |
187
|
|
|
|
|
|
|
our %DOES; |
188
|
0
|
|
|
|
|
0
|
return $DOES{$role} if exists $DOES{$role}; |
189
|
0
|
|
|
|
|
0
|
return 1 if $role eq __PACKAGE__; |
190
|
0
|
|
|
|
|
0
|
if ( $INC{'Moose/Util.pm'} and my $meta = Moose::Util::find_meta( ref $self or $self ) ) { |
191
|
1
|
|
|
|
|
54
|
$meta->can( 'does_role' ) and $meta->does_role( $role ) and return 1; |
192
|
|
|
|
|
|
|
} |
193
|
|
|
|
|
|
|
return $self->SUPER::DOES( $role ); |
194
|
|
|
|
|
|
|
} |
195
|
|
|
|
|
|
|
|
196
|
|
|
|
|
|
|
# Alias for Moose/Moo-compatibility |
197
|
|
|
|
|
|
|
shift->DOES( @_ ); |
198
|
|
|
|
|
|
|
} |
199
|
1
|
|
|
1
|
|
6
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
5
|
|
200
|
1
|
|
|
1
|
|
46
|
1; |
201
|
1
|
|
|
|
|
186
|
use strict; |
202
|
|
|
|
|
|
|
use warnings; |
203
|
|
|
|
|
|
|
no warnings qw( once void ); |
204
|
|
|
|
|
|
|
|
205
|
|
|
|
|
|
|
our $USES_MITE = "Mite::Class"; |
206
|
|
|
|
|
|
|
our $MITE_SHIM = "Mite::Shim"; |
207
|
7
|
|
|
7
|
|
9
|
our $MITE_VERSION = "0.011000"; |
208
|
7
|
|
|
|
|
7
|
# Mite keywords |
209
|
7
|
50
|
|
|
|
12
|
BEGIN { |
210
|
7
|
50
|
|
|
|
11
|
my ( $SHIM, $CALLER ) = ( "Mite::Shim", "xC1" ); |
211
|
7
|
50
|
0
|
|
|
12
|
( *after, *around, *before, *extends, *has, *signature_for, *with ) = do { |
|
|
|
33
|
|
|
|
|
212
|
0
|
0
|
0
|
|
|
0
|
no warnings 'redefine'; |
213
|
|
|
|
|
|
|
( |
214
|
7
|
|
|
|
|
13
|
sub { $SHIM->HANDLE_after( $CALLER, "class", @_ ) }, |
215
|
|
|
|
|
|
|
sub { $SHIM->HANDLE_around( $CALLER, "class", @_ ) }, |
216
|
|
|
|
|
|
|
sub { $SHIM->HANDLE_before( $CALLER, "class", @_ ) }, |
217
|
|
|
|
|
|
|
sub {}, |
218
|
|
|
|
|
|
|
sub { $SHIM->HANDLE_has( $CALLER, has => @_ ) }, |
219
|
7
|
|
|
7
|
|
557
|
sub { $SHIM->HANDLE_signature_for( $CALLER, "class", @_ ) }, |
220
|
|
|
|
|
|
|
sub { $SHIM->HANDLE_with( $CALLER, @_ ) }, |
221
|
|
|
|
|
|
|
); |
222
|
|
|
|
|
|
|
}; |
223
|
|
|
|
|
|
|
|
224
|
|
|
|
|
|
|
|
225
|
1
|
|
|
1
|
|
7
|
BEGIN { |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
28
|
|
226
|
1
|
|
|
1
|
|
6
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
28
|
|
227
|
1
|
|
|
1
|
|
4
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
115
|
|
228
|
|
|
|
|
|
|
use mro 'c3'; |
229
|
|
|
|
|
|
|
our @ISA; |
230
|
|
|
|
|
|
|
push @ISA, "xP1", "xP2"; |
231
|
|
|
|
|
|
|
} |
232
|
|
|
|
|
|
|
|
233
|
|
|
|
|
|
|
|
234
|
1
|
|
|
1
|
|
5
|
# See UNIVERSAL |
235
|
1
|
|
|
|
|
1
|
my ( $self, $role ) = @_; |
236
|
|
|
|
|
|
|
our %DOES; |
237
|
1
|
|
|
1
|
|
7
|
return $DOES{$role} if exists $DOES{$role}; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
191
|
|
238
|
|
|
|
|
|
|
return 1 if $role eq __PACKAGE__; |
239
|
0
|
|
|
|
|
0
|
if ( $INC{'Moose/Util.pm'} and my $meta = Moose::Util::find_meta( ref $self or $self ) ) { |
240
|
0
|
|
|
|
|
0
|
$meta->can( 'does_role' ) and $meta->does_role( $role ) and return 1; |
241
|
0
|
|
|
|
|
0
|
} |
242
|
|
|
|
|
|
|
return $self->SUPER::DOES( $role ); |
243
|
0
|
|
|
|
|
0
|
} |
244
|
0
|
|
|
|
|
0
|
|
245
|
0
|
|
|
|
|
0
|
# Alias for Moose/Moo-compatibility |
246
|
1
|
|
|
|
|
42
|
shift->DOES( @_ ); |
247
|
|
|
|
|
|
|
} |
248
|
|
|
|
|
|
|
|
249
|
|
|
|
|
|
|
1; |