line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Moose::Meta::Method::Accessor::Native::Array::first; |
2
|
|
|
|
|
|
|
our $VERSION = '2.2205'; |
3
|
|
|
|
|
|
|
|
4
|
4
|
|
|
4
|
|
2715
|
use strict; |
|
4
|
|
|
|
|
12
|
|
|
4
|
|
|
|
|
160
|
|
5
|
4
|
|
|
4
|
|
26
|
use warnings; |
|
4
|
|
|
|
|
16
|
|
|
4
|
|
|
|
|
110
|
|
6
|
|
|
|
|
|
|
|
7
|
4
|
|
|
4
|
|
27
|
use List::Util (); |
|
4
|
|
|
|
|
12
|
|
|
4
|
|
|
|
|
74
|
|
8
|
4
|
|
|
4
|
|
19
|
use Params::Util (); |
|
4
|
|
|
|
|
11
|
|
|
4
|
|
|
|
|
74
|
|
9
|
|
|
|
|
|
|
|
10
|
4
|
|
|
4
|
|
34
|
use Moose::Role; |
|
4
|
|
|
|
|
13
|
|
|
4
|
|
|
|
|
38
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
with 'Moose::Meta::Method::Accessor::Native::Reader'; |
13
|
|
|
|
|
|
|
|
14
|
19
|
|
|
19
|
|
76
|
sub _minimum_arguments { 1 } |
15
|
|
|
|
|
|
|
|
16
|
19
|
|
|
19
|
|
66
|
sub _maximum_arguments { 1 } |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub _inline_check_arguments { |
19
|
19
|
|
|
19
|
|
48
|
my $self = shift; |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
return ( |
22
|
19
|
|
|
|
|
83
|
'if (!Params::Util::_CODELIKE($_[0])) {', |
23
|
|
|
|
|
|
|
$self->_inline_throw_exception( InvalidArgumentToMethod => |
24
|
|
|
|
|
|
|
'argument => $_[0],'. |
25
|
|
|
|
|
|
|
'method_name => "first",'. |
26
|
|
|
|
|
|
|
'type_of_argument => "code reference",'. |
27
|
|
|
|
|
|
|
'type => "CodeRef",', |
28
|
|
|
|
|
|
|
) . ';', |
29
|
|
|
|
|
|
|
'}', |
30
|
|
|
|
|
|
|
); |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
sub _return_value { |
34
|
19
|
|
|
19
|
|
43
|
my $self = shift; |
35
|
19
|
|
|
|
|
46
|
my ($slot_access) = @_; |
36
|
|
|
|
|
|
|
|
37
|
19
|
|
|
|
|
206
|
return '&List::Util::first($_[0], @{ (' . $slot_access . ') })'; |
38
|
|
|
|
|
|
|
} |
39
|
|
|
|
|
|
|
|
40
|
4
|
|
|
4
|
|
37
|
no Moose::Role; |
|
4
|
|
|
|
|
16
|
|
|
4
|
|
|
|
|
22
|
|
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
1; |