line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Moose::Meta::Method::Accessor::Native::Array; |
2
|
|
|
|
|
|
|
our $VERSION = '2.2203'; |
3
|
|
|
|
|
|
|
|
4
|
25
|
|
|
25
|
|
12626
|
use strict; |
|
25
|
|
|
|
|
70
|
|
|
25
|
|
|
|
|
734
|
|
5
|
25
|
|
|
25
|
|
135
|
use warnings; |
|
25
|
|
|
|
|
50
|
|
|
25
|
|
|
|
|
582
|
|
6
|
|
|
|
|
|
|
|
7
|
25
|
|
|
25
|
|
120
|
use Moose::Role; |
|
25
|
|
|
|
|
45
|
|
|
25
|
|
|
|
|
148
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub _inline_check_var_is_valid_index { |
10
|
183
|
|
|
183
|
|
295
|
my $self = shift; |
11
|
183
|
|
|
|
|
341
|
my ($var) = @_; |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
return ( |
14
|
183
|
|
|
|
|
777
|
'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
|
|
240
|
no Moose::Role; |
|
25
|
|
|
|
|
54
|
|
|
25
|
|
|
|
|
118
|
|
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
1; |