line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Moose::Meta::Method::Accessor::Native::Counter::reset; |
2
|
|
|
|
|
|
|
our $VERSION = '2.2206'; |
3
|
|
|
|
|
|
|
|
4
|
3
|
|
|
3
|
|
1910
|
use strict; |
|
3
|
|
|
|
|
8
|
|
|
3
|
|
|
|
|
94
|
|
5
|
3
|
|
|
3
|
|
16
|
use warnings; |
|
3
|
|
|
|
|
23
|
|
|
3
|
|
|
|
|
80
|
|
6
|
|
|
|
|
|
|
|
7
|
3
|
|
|
3
|
|
15
|
use Moose::Role; |
|
3
|
|
|
|
|
14
|
|
|
3
|
|
|
|
|
21
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
with 'Moose::Meta::Method::Accessor::Native::Writer'; |
10
|
|
|
|
|
|
|
|
11
|
10
|
|
|
10
|
|
43
|
sub _maximum_arguments { 0 } |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub _potential_value { |
14
|
16
|
|
|
16
|
|
55
|
my $self = shift; |
15
|
16
|
|
|
|
|
42
|
my ($slot_access) = @_; |
16
|
|
|
|
|
|
|
|
17
|
16
|
|
|
|
|
60
|
my $attr = $self->associated_attribute; |
18
|
|
|
|
|
|
|
|
19
|
16
|
|
|
|
|
123
|
return '(do { ' |
20
|
|
|
|
|
|
|
. join(' ', $attr->_inline_generate_default( |
21
|
|
|
|
|
|
|
'$self', '$default_for_reset' |
22
|
|
|
|
|
|
|
)) . ' ' |
23
|
|
|
|
|
|
|
. '$default_for_reset; ' |
24
|
|
|
|
|
|
|
. '})'; |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub _inline_optimized_set_new_value { |
28
|
6
|
|
|
6
|
|
28
|
my $self = shift; |
29
|
6
|
|
|
|
|
20
|
my ($inv, $new, $slot_access) = @_; |
30
|
|
|
|
|
|
|
|
31
|
6
|
|
|
|
|
27
|
return $slot_access . ' = ' . $self->_potential_value . ';'; |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
3
|
|
|
3
|
|
24
|
no Moose::Role; |
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
14
|
|
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
1; |