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