line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
{ |
2
|
|
|
|
|
|
|
use strict; |
3
|
1
|
|
|
1
|
|
15
|
use warnings; |
|
1
|
|
|
|
|
10
|
|
|
1
|
|
|
|
|
56
|
|
4
|
1
|
|
|
1
|
|
10
|
no warnings qw( once void ); |
|
1
|
|
|
|
|
5
|
|
|
1
|
|
|
|
|
80
|
|
5
|
1
|
|
|
1
|
|
12
|
|
|
1
|
|
|
|
|
9
|
|
|
1
|
|
|
|
|
208
|
|
6
|
|
|
|
|
|
|
our $USES_MITE = "Mite::Class"; |
7
|
|
|
|
|
|
|
our $MITE_SHIM = "Mite::Shim"; |
8
|
|
|
|
|
|
|
our $MITE_VERSION = "0.010008"; |
9
|
|
|
|
|
|
|
# Mite keywords |
10
|
|
|
|
|
|
|
BEGIN { |
11
|
|
|
|
|
|
|
my ( $SHIM, $CALLER ) = ( "Mite::Shim", "xGP" ); |
12
|
1
|
|
|
1
|
|
8
|
( *after, *around, *before, *extends, *has, *signature_for, *with ) = do { |
13
|
1
|
|
|
|
|
5
|
no warnings 'redefine'; |
14
|
|
|
|
|
|
|
( |
15
|
1
|
|
|
1
|
|
12
|
sub { $SHIM->HANDLE_after( $CALLER, "class", @_ ) }, |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
253
|
|
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
|
|
|
|
|
54
|
|
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
|
|
11
|
BUILD => [ |
|
1
|
|
|
|
|
5
|
|
|
1
|
|
|
|
|
711
|
|
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
|
|
13
|
my ( $self, $role ) = @_; |
|
1
|
|
|
|
|
7
|
|
|
1
|
|
|
|
|
272
|
|
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
|
|
36
|
|
98
|
28
|
|
|
|
|
23
|
# Alias for Moose/Moo-compatibility |
99
|
28
|
50
|
|
|
|
34
|
shift->DOES( @_ ); |
100
|
28
|
50
|
|
|
|
35
|
} |
101
|
28
|
50
|
0
|
|
|
38
|
|
|
|
|
33
|
|
|
|
|
102
|
0
|
0
|
0
|
|
|
0
|
1; |
103
|
|
|
|
|
|
|
use strict; |
104
|
28
|
|
|
|
|
122
|
use warnings; |
105
|
|
|
|
|
|
|
no warnings qw( once void ); |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
our $USES_MITE = "Mite::Class"; |
108
|
|
|
|
|
|
|
our $MITE_SHIM = "Mite::Shim"; |
109
|
7
|
|
|
7
|
|
2188
|
our $MITE_VERSION = "0.010008"; |
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
|
|
|
|
|
6
|
|
|
1
|
|
|
|
|
32
|
|
116
|
1
|
|
|
1
|
|
9
|
sub { $SHIM->HANDLE_after( $CALLER, "class", @_ ) }, |
|
1
|
|
|
|
|
5
|
|
|
1
|
|
|
|
|
33
|
|
117
|
1
|
|
|
1
|
|
5
|
sub { $SHIM->HANDLE_around( $CALLER, "class", @_ ) }, |
|
1
|
|
|
|
|
6
|
|
|
1
|
|
|
|
|
106
|
|
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
|
|
5
|
}; |
125
|
1
|
|
|
|
|
1
|
|
126
|
|
|
|
|
|
|
|
127
|
1
|
|
|
1
|
|
5
|
BEGIN { |
|
1
|
|
|
|
|
9
|
|
|
1
|
|
|
|
|
182
|
|
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
|
|
|
|
|
50
|
# 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
|
|
11
|
return $self->SUPER::DOES( $role ); |
|
1
|
|
|
|
|
8
|
|
|
1
|
|
|
|
|
22
|
|
145
|
1
|
|
|
1
|
|
45
|
} |
146
|
1
|
|
|
|
|
204
|
|
147
|
|
|
|
|
|
|
# Alias for Moose/Moo-compatibility |
148
|
|
|
|
|
|
|
shift->DOES( @_ ); |
149
|
|
|
|
|
|
|
} |
150
|
|
|
|
|
|
|
|
151
|
|
|
|
|
|
|
1; |
152
|
14
|
|
|
14
|
|
20
|
use strict; |
153
|
14
|
|
|
|
|
9
|
use warnings; |
154
|
14
|
50
|
|
|
|
21
|
no warnings qw( once void ); |
155
|
14
|
50
|
|
|
|
18
|
|
156
|
14
|
50
|
0
|
|
|
27
|
our $USES_MITE = "Mite::Class"; |
|
|
|
33
|
|
|
|
|
157
|
0
|
0
|
0
|
|
|
0
|
our $MITE_SHIM = "Mite::Shim"; |
158
|
|
|
|
|
|
|
our $MITE_VERSION = "0.010008"; |
159
|
14
|
|
|
|
|
22
|
# 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
|
|
606
|
( |
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
|
|
9
|
sub { $SHIM->HANDLE_signature_for( $CALLER, "class", @_ ) }, |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
29
|
|
171
|
1
|
|
|
1
|
|
4
|
sub { $SHIM->HANDLE_with( $CALLER, @_ ) }, |
|
1
|
|
|
|
|
5
|
|
|
1
|
|
|
|
|
38
|
|
172
|
1
|
|
|
1
|
|
9
|
); |
|
1
|
|
|
|
|
8
|
|
|
1
|
|
|
|
|
129
|
|
173
|
|
|
|
|
|
|
}; |
174
|
|
|
|
|
|
|
|
175
|
|
|
|
|
|
|
|
176
|
|
|
|
|
|
|
BEGIN { |
177
|
|
|
|
|
|
|
|
178
|
|
|
|
|
|
|
|
179
|
1
|
|
|
1
|
|
4
|
use mro 'c3'; |
180
|
1
|
|
|
|
|
6
|
our @ISA; |
181
|
|
|
|
|
|
|
push @ISA, "xGP"; |
182
|
1
|
|
|
1
|
|
11
|
} |
|
1
|
|
|
|
|
5
|
|
|
1
|
|
|
|
|
149
|
|
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
|
|
|
|
|
42
|
$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
|
|
11
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
4
|
|
200
|
1
|
|
|
1
|
|
41
|
1; |
201
|
1
|
|
|
|
|
151
|
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
|
|
11
|
our $MITE_VERSION = "0.010008"; |
208
|
7
|
|
|
|
|
5
|
# Mite keywords |
209
|
7
|
50
|
|
|
|
13
|
BEGIN { |
210
|
7
|
50
|
|
|
|
10
|
my ( $SHIM, $CALLER ) = ( "Mite::Shim", "xC1" ); |
211
|
7
|
50
|
0
|
|
|
13
|
( *after, *around, *before, *extends, *has, *signature_for, *with ) = do { |
|
|
|
33
|
|
|
|
|
212
|
0
|
0
|
0
|
|
|
0
|
no warnings 'redefine'; |
213
|
|
|
|
|
|
|
( |
214
|
7
|
|
|
|
|
11
|
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
|
|
471
|
sub { $SHIM->HANDLE_signature_for( $CALLER, "class", @_ ) }, |
220
|
|
|
|
|
|
|
sub { $SHIM->HANDLE_with( $CALLER, @_ ) }, |
221
|
|
|
|
|
|
|
); |
222
|
|
|
|
|
|
|
}; |
223
|
|
|
|
|
|
|
|
224
|
|
|
|
|
|
|
|
225
|
1
|
|
|
1
|
|
18
|
BEGIN { |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
33
|
|
226
|
1
|
|
|
1
|
|
10
|
|
|
1
|
|
|
|
|
7
|
|
|
1
|
|
|
|
|
31
|
|
227
|
1
|
|
|
1
|
|
5
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
95
|
|
228
|
|
|
|
|
|
|
use mro 'c3'; |
229
|
|
|
|
|
|
|
our @ISA; |
230
|
|
|
|
|
|
|
push @ISA, "xP1", "xP2"; |
231
|
|
|
|
|
|
|
} |
232
|
|
|
|
|
|
|
|
233
|
|
|
|
|
|
|
|
234
|
1
|
|
|
1
|
|
5
|
# See UNIVERSAL |
235
|
1
|
|
|
|
|
2
|
my ( $self, $role ) = @_; |
236
|
|
|
|
|
|
|
our %DOES; |
237
|
1
|
|
|
1
|
|
5
|
return $DOES{$role} if exists $DOES{$role}; |
|
1
|
|
|
|
|
7
|
|
|
1
|
|
|
|
|
165
|
|
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
|
|
|
|
|
62
|
shift->DOES( @_ ); |
247
|
|
|
|
|
|
|
} |
248
|
|
|
|
|
|
|
|
249
|
|
|
|
|
|
|
1; |