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