return ($name, $method);
}
else {
- my $inline_me = ($generate_as_inline_methods && $self->associated_class->instance_metaclass->is_inlinable);
my $method;
eval {
if ( $method_ctx ) {
$method = $self->accessor_metaclass->new(
attribute => $self,
- is_inline => $inline_me,
accessor_type => $type,
package_name => $self->associated_class->name,
name => $accessor,
my ( $self, @args ) = @_;
return (
- inline_accessors => 1,
inline_constructor => 1,
inline_destructor => 0,
debug => 0,
$immutable_meta->make_immutable(
inline_constructor => 0,
- inline_accessors => 0,
);
return $class_name;
my ( $self, %args ) = @_;
# FIXME
- $self->_inline_accessors(%args) if $args{inline_accessors};
$self->_inline_constructor(%args) if $args{inline_constructor};
$self->_inline_destructor(%args) if $args{inline_destructor};
}
}
sub _inline_accessors {
+ Carp::cluck("The _inline_accessors method is deprecated and will be removed in a future release.\n");
+
my $self = shift;
foreach my $attr_name ( $self->get_attribute_list ) {
=over 8
-=item * inline_accessors
-
=item * inline_constructor
=item * inline_destructor
original_method => $params->{original_method},
# inherit from Class::MOP::Generated
- is_inline => $params->{is_inline} || 0,
+ is_inline => ($params->{associated_metaclass}
+ && $params->{associated_metaclass}->instance_metaclass->is_inlinable),
definition_context => $params->{definition_context},
# defined in this class