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