line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Moose::Meta::Method::Accessor::Native::Array::pop; |
2
|
|
|
|
|
|
|
our $VERSION = '2.2206'; |
3
|
|
|
|
|
|
|
|
4
|
3
|
|
|
3
|
|
1870
|
use strict; |
|
3
|
|
|
|
|
9
|
|
|
3
|
|
|
|
|
108
|
|
5
|
3
|
|
|
3
|
|
17
|
use warnings; |
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
77
|
|
6
|
|
|
|
|
|
|
|
7
|
3
|
|
|
3
|
|
17
|
use Moose::Role; |
|
3
|
|
|
|
|
11
|
|
|
3
|
|
|
|
|
25
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
with 'Moose::Meta::Method::Accessor::Native::Array::Writer'; |
10
|
|
|
|
|
|
|
|
11
|
10
|
|
|
10
|
|
37
|
sub _maximum_arguments { 0 } |
12
|
|
|
|
|
|
|
|
13
|
5
|
|
|
5
|
|
43
|
sub _adds_members { 0 } |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub _potential_value { |
16
|
10
|
|
|
10
|
|
30
|
my $self = shift; |
17
|
10
|
|
|
|
|
27
|
my ($slot_access) = @_; |
18
|
|
|
|
|
|
|
|
19
|
10
|
|
|
|
|
62
|
return '[ @{ (' . $slot_access . ') } > 1 ' |
20
|
|
|
|
|
|
|
. '? @{ (' . $slot_access . ') }[0..$#{ (' . $slot_access . ') } - 1] ' |
21
|
|
|
|
|
|
|
. ': () ]'; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub _inline_capture_return_value { |
25
|
10
|
|
|
10
|
|
46
|
my $self = shift; |
26
|
10
|
|
|
|
|
43
|
my ($slot_access) = @_; |
27
|
|
|
|
|
|
|
|
28
|
10
|
|
|
|
|
75
|
return 'my $old = ' . $slot_access . '->[-1];'; |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
sub _inline_optimized_set_new_value { |
32
|
7
|
|
|
7
|
|
20
|
my $self = shift; |
33
|
7
|
|
|
|
|
33
|
my ($inv, $new, $slot_access) = @_; |
34
|
|
|
|
|
|
|
|
35
|
7
|
|
|
|
|
45
|
return 'pop @{ (' . $slot_access . ') };'; |
36
|
|
|
|
|
|
|
} |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
sub _return_value { |
39
|
20
|
|
|
20
|
|
60
|
my $self = shift; |
40
|
20
|
|
|
|
|
50
|
my ($slot_access) = @_; |
41
|
|
|
|
|
|
|
|
42
|
20
|
|
|
|
|
78
|
return '$old'; |
43
|
|
|
|
|
|
|
} |
44
|
|
|
|
|
|
|
|
45
|
3
|
|
|
3
|
|
32
|
no Moose::Role; |
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
26
|
|
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
1; |