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