1 package Moose::Meta::Method::Accessor::Native::Array::unshift;
7 $VERSION = eval $VERSION;
8 our $AUTHORITY = 'cpan:STEVAN';
12 with 'Moose::Meta::Method::Accessor::Native::Array::Writer' => {
15 _inline_optimized_set_new_value
21 sub _adds_members { 1 }
23 sub _potential_value {
25 my ($slot_access) = @_;
27 return '[ @_, @{ (' . $slot_access . ') } ]';
30 sub _inline_optimized_set_new_value {
32 my ($inv, $new, $slot_access) = @_;
34 return 'unshift @{ (' . $slot_access . ') }, @_;';
39 my ($slot_access) = @_;
41 return 'scalar @{ (' . $slot_access . ') }';