1 package Moose::Meta::Method::Accessor::Native::Array::push;
8 with 'Moose::Meta::Method::Accessor::Native::Array::Writer';
10 sub _adds_members { 1 }
12 sub _potential_value {
14 my ($slot_access) = @_;
16 return '[ @{ (' . $slot_access . ') }, @_ ]';
19 sub _inline_optimized_set_new_value {
21 my ($inv, $new, $slot_access) = @_;
23 return 'push @{ (' . $slot_access . ') }, @_;';
28 my ($slot_access) = @_;
30 return 'scalar @{ (' . $slot_access . ') }';