line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Moose::Meta::Method::Accessor::Native::Array::reduce; |
2
|
|
|
|
|
|
|
our $VERSION = '2.2206'; |
3
|
|
|
|
|
|
|
|
4
|
4
|
|
|
4
|
|
3251
|
use strict; |
|
4
|
|
|
|
|
13
|
|
|
4
|
|
|
|
|
145
|
|
5
|
4
|
|
|
4
|
|
25
|
use warnings; |
|
4
|
|
|
|
|
11
|
|
|
4
|
|
|
|
|
120
|
|
6
|
|
|
|
|
|
|
|
7
|
4
|
|
|
4
|
|
28
|
use List::Util (); |
|
4
|
|
|
|
|
7
|
|
|
4
|
|
|
|
|
77
|
|
8
|
4
|
|
|
4
|
|
22
|
use Params::Util (); |
|
4
|
|
|
|
|
19
|
|
|
4
|
|
|
|
|
77
|
|
9
|
|
|
|
|
|
|
|
10
|
4
|
|
|
4
|
|
20
|
use Moose::Role; |
|
4
|
|
|
|
|
11
|
|
|
4
|
|
|
|
|
35
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
with 'Moose::Meta::Method::Accessor::Native::Reader'; |
13
|
|
|
|
|
|
|
|
14
|
19
|
|
|
19
|
|
69
|
sub _minimum_arguments { 1 } |
15
|
|
|
|
|
|
|
|
16
|
19
|
|
|
19
|
|
68
|
sub _maximum_arguments { 1 } |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub _inline_check_arguments { |
19
|
19
|
|
|
19
|
|
56
|
my $self = shift; |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
return ( |
22
|
19
|
|
|
|
|
73
|
'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
|
|
53
|
my $self = shift; |
35
|
19
|
|
|
|
|
53
|
my ($slot_access) = @_; |
36
|
|
|
|
|
|
|
|
37
|
19
|
|
|
|
|
194
|
return 'List::Util::reduce { $_[0]->($a, $b) } @{ (' . $slot_access . ') }'; |
38
|
|
|
|
|
|
|
} |
39
|
|
|
|
|
|
|
|
40
|
4
|
|
|
4
|
|
45
|
no Moose::Role; |
|
4
|
|
|
|
|
17
|
|
|
4
|
|
|
|
|
27
|
|
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
1; |