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