line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Moose::Meta::Method::Accessor::Native::Counter::reset; |
2
|
|
|
|
|
|
|
our $VERSION = '2.2205'; |
3
|
|
|
|
|
|
|
|
4
|
3
|
|
|
3
|
|
1789
|
use strict; |
|
3
|
|
|
|
|
8
|
|
|
3
|
|
|
|
|
95
|
|
5
|
3
|
|
|
3
|
|
18
|
use warnings; |
|
3
|
|
|
|
|
9
|
|
|
3
|
|
|
|
|
87
|
|
6
|
|
|
|
|
|
|
|
7
|
3
|
|
|
3
|
|
15
|
use Moose::Role; |
|
3
|
|
|
|
|
8
|
|
|
3
|
|
|
|
|
22
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
with 'Moose::Meta::Method::Accessor::Native::Writer'; |
10
|
|
|
|
|
|
|
|
11
|
10
|
|
|
10
|
|
46
|
sub _maximum_arguments { 0 } |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub _potential_value { |
14
|
16
|
|
|
16
|
|
71
|
my $self = shift; |
15
|
16
|
|
|
|
|
40
|
my ($slot_access) = @_; |
16
|
|
|
|
|
|
|
|
17
|
16
|
|
|
|
|
49
|
my $attr = $self->associated_attribute; |
18
|
|
|
|
|
|
|
|
19
|
16
|
|
|
|
|
86
|
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
|
|
17
|
my $self = shift; |
29
|
6
|
|
|
|
|
27
|
my ($inv, $new, $slot_access) = @_; |
30
|
|
|
|
|
|
|
|
31
|
6
|
|
|
|
|
23
|
return $slot_access . ' = ' . $self->_potential_value . ';'; |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
3
|
|
|
3
|
|
24
|
no Moose::Role; |
|
3
|
|
|
|
|
8
|
|
|
3
|
|
|
|
|
22
|
|
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
1; |