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