line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Moose::Meta::Method::Accessor::Native::Array::first; |
2
|
|
|
|
|
|
|
our $VERSION = '2.2203'; |
3
|
|
|
|
|
|
|
|
4
|
4
|
|
|
4
|
|
2547
|
use strict; |
|
4
|
|
|
|
|
13
|
|
|
4
|
|
|
|
|
124
|
|
5
|
4
|
|
|
4
|
|
20
|
use warnings; |
|
4
|
|
|
|
|
9
|
|
|
4
|
|
|
|
|
114
|
|
6
|
|
|
|
|
|
|
|
7
|
4
|
|
|
4
|
|
21
|
use List::Util (); |
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
81
|
|
8
|
4
|
|
|
4
|
|
21
|
use Params::Util (); |
|
4
|
|
|
|
|
10
|
|
|
4
|
|
|
|
|
65
|
|
9
|
|
|
|
|
|
|
|
10
|
4
|
|
|
4
|
|
20
|
use Moose::Role; |
|
4
|
|
|
|
|
16
|
|
|
4
|
|
|
|
|
31
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
with 'Moose::Meta::Method::Accessor::Native::Reader'; |
13
|
|
|
|
|
|
|
|
14
|
19
|
|
|
19
|
|
53
|
sub _minimum_arguments { 1 } |
15
|
|
|
|
|
|
|
|
16
|
19
|
|
|
19
|
|
57
|
sub _maximum_arguments { 1 } |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub _inline_check_arguments { |
19
|
19
|
|
|
19
|
|
92
|
my $self = shift; |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
return ( |
22
|
19
|
|
|
|
|
76
|
'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
|
|
64
|
my $self = shift; |
35
|
19
|
|
|
|
|
42
|
my ($slot_access) = @_; |
36
|
|
|
|
|
|
|
|
37
|
19
|
|
|
|
|
167
|
return '&List::Util::first($_[0], @{ (' . $slot_access . ') })'; |
38
|
|
|
|
|
|
|
} |
39
|
|
|
|
|
|
|
|
40
|
4
|
|
|
4
|
|
33
|
no Moose::Role; |
|
4
|
|
|
|
|
11
|
|
|
4
|
|
|
|
|
24
|
|
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
1; |