Rename _inline_copy_value so we don't accidentally reuse the version for non-native...
Dave Rolsky [Sat, 25 Sep 2010 20:07:48 +0000 (15:07 -0500)]
lib/Moose/Meta/Method/Accessor/Native/Writer.pm

index c1a9b59..9909524 100644 (file)
@@ -48,7 +48,7 @@ sub _writer_core {
 
     my $potential_value = $self->_potential_value($slot_access);
 
-    $code .= "\n" . $self->_inline_copy_value( \$potential_value );
+    $code .= "\n" . $self->_inline_copy_native_value( \$potential_value );
     $code .= "\n"
         . $self->_inline_tc_code(
         $potential_value
@@ -96,7 +96,7 @@ sub _is_root_type {
     return any { $name eq $_ } @{ $self->root_types };
 }
 
-sub _inline_copy_value {
+sub _inline_copy_native_value {
     my ( $self, $potential_ref ) = @_;
 
     return q{} unless $self->_value_needs_copy;