Add definition context to every accessor defined internally
[gitmo/Moose.git] / lib / Moose / Meta / Role / Attribute.pm
index 1344fa2..bc0bd1f 100644 (file)
@@ -12,30 +12,35 @@ use base 'Moose::Meta::Mixin::AttributeCore', 'Class::MOP::Object';
 __PACKAGE__->meta->add_attribute(
     'metaclass' => (
         reader => 'metaclass',
+        Class::MOP::_definition_context(),
     )
 );
 
 __PACKAGE__->meta->add_attribute(
     'associated_role' => (
         reader => 'associated_role',
+        Class::MOP::_definition_context(),
     )
 );
 
 __PACKAGE__->meta->add_attribute(
     '_original_role' => (
         reader => '_original_role',
+        Class::MOP::_definition_context(),
     )
 );
 
 __PACKAGE__->meta->add_attribute(
     'is' => (
         reader => 'is',
+        Class::MOP::_definition_context(),
     )
 );
 
 __PACKAGE__->meta->add_attribute(
     'original_options' => (
         reader => 'original_options',
+        Class::MOP::_definition_context(),
     )
 );