line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Moose::Meta::Method::Accessor::Native::Array; |
2
|
|
|
|
|
|
|
our $VERSION = '2.2206'; |
3
|
|
|
|
|
|
|
|
4
|
25
|
|
|
25
|
|
14963
|
use strict; |
|
25
|
|
|
|
|
68
|
|
|
25
|
|
|
|
|
853
|
|
5
|
25
|
|
|
25
|
|
200
|
use warnings; |
|
25
|
|
|
|
|
74
|
|
|
25
|
|
|
|
|
648
|
|
6
|
|
|
|
|
|
|
|
7
|
25
|
|
|
25
|
|
162
|
use Moose::Role; |
|
25
|
|
|
|
|
76
|
|
|
25
|
|
|
|
|
185
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub _inline_check_var_is_valid_index { |
10
|
183
|
|
|
183
|
|
345
|
my $self = shift; |
11
|
183
|
|
|
|
|
412
|
my ($var) = @_; |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
return ( |
14
|
183
|
|
|
|
|
858
|
'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
|
|
232
|
no Moose::Role; |
|
25
|
|
|
|
|
71
|
|
|
25
|
|
|
|
|
143
|
|
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
1; |