'name' => $options{name},
# ...
'options' => $options{options},
+ 'definition_context' => $options{definition_context},
'associated_metaclass' => $options{metaclass},
} => $class;
'my $self = shift;',
'return ' . $self->_generate_fallback_destructor('$self'),
'if Scalar::Util::blessed($self) ne \'' . $class . '\';',
- 'local $?;',
$self->_generate_DEMOLISHALL('$self'),
'return;',
'}',
return unless @methods;
return (
+ 'local $?;',
'my $igd = Devel::GlobalDestruction::in_global_destruction;',
'Try::Tiny::try {',
(map { $inv . '->' . $_->{class} . '::DEMOLISH($igd);' } @methods),
=head1 DESCRIPTION
-This class is a subclass of L<Class::MOP::Class::Generated> that
+This class is a subclass of L<Class::MOP::Method::Inlined> that
provides Moose-specific functionality for inlining destructors.
To understand this class, you should read the the
-L<Class::MOP::Class::Generated> documentation as well.
+L<Class::MOP::Method::Inlined> documentation as well.
=head1 INHERITANCE
C<Moose::Meta::Method::Destructor> is a subclass of
-L<Moose::Meta::Method> I<and> L<Class::MOP::Method::Generated>.
+L<Moose::Meta::Method> I<and> L<Class::MOP::Method::Inlined>.
=head1 METHODS