line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Moose::Meta::Method::Accessor::Native::String::inc; |
2
|
|
|
|
|
|
|
our $VERSION = '2.2203'; |
3
|
|
|
|
|
|
|
|
4
|
2
|
|
|
2
|
|
1136
|
use strict; |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
64
|
|
5
|
2
|
|
|
2
|
|
16
|
use warnings; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
57
|
|
6
|
|
|
|
|
|
|
|
7
|
2
|
|
|
2
|
|
10
|
use Moose::Role; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
16
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
with 'Moose::Meta::Method::Accessor::Native::Writer'; |
10
|
|
|
|
|
|
|
|
11
|
7
|
|
|
7
|
|
22
|
sub _maximum_arguments { 0 } |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub _potential_value { |
14
|
7
|
|
|
7
|
|
18
|
my $self = shift; |
15
|
7
|
|
|
|
|
19
|
my ($slot_access) = @_; |
16
|
|
|
|
|
|
|
|
17
|
7
|
|
|
|
|
31
|
return '(do { ' |
18
|
|
|
|
|
|
|
. 'my $val = ' . $slot_access . '; ' |
19
|
|
|
|
|
|
|
. '$val++; ' |
20
|
|
|
|
|
|
|
. '$val; ' |
21
|
|
|
|
|
|
|
. '})'; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub _inline_optimized_set_new_value { |
25
|
3
|
|
|
3
|
|
5
|
my $self = shift; |
26
|
3
|
|
|
|
|
8
|
my ($inv, $new, $slot_access) = @_; |
27
|
|
|
|
|
|
|
|
28
|
3
|
|
|
|
|
16
|
return $slot_access . '++;'; |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
2
|
|
|
2
|
|
17
|
no Moose::Role; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
9
|
|
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
1; |