| 1 | package Moose::Meta::Method::Accessor::Native::Hash::clear; | ||
| 2 | 4 | our $VERSION = '2.4001'; | |
| 3 | |||
| 4 | 4 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 4 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 4 | ▶ | use Moose::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 4 | with 'Moose::Meta::Method::Accessor::Native::Hash::Writer'; | |
| 10 | |||
| 11 | 12 | ▶ | sub _maximum_arguments { 0 } |
|
Subroutine
_maximum_arguments: called CC=1 SCAR=0.0
| |||
| 12 | |||
| 13 | 0 | ▶ | sub _adds_members { 0 } |
|
Subroutine
_adds_members: not called CC=1 SCAR=6.9
| |||
| 14 | |||
| 15 | # The inner () in this expression is for the benefit of inlining code that | ||
| 16 | # might end up looking like "values %{ {} }". This is a syntax error in perl | ||
| 17 | # but 'values %{ { () } }' is not. | ||
| 18 | 12 | ▶ | sub _potential_value { '{ ( ) }' } |
|
Subroutine
_potential_value: called CC=1 SCAR=0.0
| |||
| 19 | |||
| 20 | # There are no new members so we don't need to coerce new values (none exist) | ||
| 21 | # and we always want to check the new (empty) hash as a whole. | ||
| 22 | 12 | ▶ | sub _inline_coerce_new_values { '' } |
|
Subroutine
_inline_coerce_new_values: called CC=1 SCAR=0.0
| |||
| 23 | |||
| 24 | 9 | ▶ | sub _check_new_members_only { 0 } |
|
Subroutine
_check_new_members_only: called CC=1 SCAR=0.0
| |||
| 25 | |||
| 26 | 7 | ▶ | sub _inline_optimized_set_new_value { |
|
Subroutine
_inline_optimized_set_new_value: called CC=1 SCAR=0.0
| |||
| 27 | 7 | my $self = shift; | |
| 28 | 7 | my ($inv, $new, $slot_access) = @_; | |
| 29 | |||
| 30 | 7 | return $slot_access . ' = {};'; | |
| 31 | } | ||
| 32 | |||
| 33 | 24 | ▶ | sub _return_value { '' } |
|
Subroutine
_return_value: called CC=1 SCAR=0.0
| |||
| 34 | |||
| 35 | 4 | ▶ | no Moose::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 36 | |||
| 37 | 4 | 1; | |