line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Moose::Meta::Method::Accessor::Native::Array; |
2
|
|
|
|
|
|
|
our $VERSION = '2.2205'; |
3
|
|
|
|
|
|
|
|
4
|
25
|
|
|
25
|
|
15195
|
use strict; |
|
25
|
|
|
|
|
98
|
|
|
25
|
|
|
|
|
921
|
|
5
|
25
|
|
|
25
|
|
189
|
use warnings; |
|
25
|
|
|
|
|
80
|
|
|
25
|
|
|
|
|
704
|
|
6
|
|
|
|
|
|
|
|
7
|
25
|
|
|
25
|
|
147
|
use Moose::Role; |
|
25
|
|
|
|
|
55
|
|
|
25
|
|
|
|
|
194
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub _inline_check_var_is_valid_index { |
10
|
183
|
|
|
183
|
|
341
|
my $self = shift; |
11
|
183
|
|
|
|
|
486
|
my ($var) = @_; |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
return ( |
14
|
183
|
|
|
|
|
994
|
'if (!defined(' . $var . ') || ' . $var . ' !~ /^-?\d+$/) {', |
15
|
|
|
|
|
|
|
$self->_inline_throw_exception( InvalidArgumentToMethod => |
16
|
|
|
|
|
|
|
'argument => '.$var.','. |
17
|
|
|
|
|
|
|
'method_name => "'.$self->delegate_to_method.'",'. |
18
|
|
|
|
|
|
|
'type_of_argument => "integer",'. |
19
|
|
|
|
|
|
|
'type => "Int",'. |
20
|
|
|
|
|
|
|
'argument_noun => "index"', |
21
|
|
|
|
|
|
|
) . ';', |
22
|
|
|
|
|
|
|
'}', |
23
|
|
|
|
|
|
|
); |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
25
|
|
|
25
|
|
229
|
no Moose::Role; |
|
25
|
|
|
|
|
88
|
|
|
25
|
|
|
|
|
188
|
|
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
1; |