}
if ( defined( my $init_arg = $attr->init_arg ) ) {
+ my $mi = $self->_meta_instance;
+ my $attr_name = $attr->name;
+
return (
'if(exists $params->{\''
. $init_arg . '\'}){' . "\n"
- . $self->_meta_instance->inline_set_slot_value(
+ . $mi->inline_set_slot_value(
'$instance',
- $attr->name,
+ $attr_name,
'$params->{\'' . $init_arg . '\'}'
)
. "\n" . '} '
. (
!defined $default ? '' : 'else {' . "\n"
- . $self->_meta_instance->inline_set_slot_value(
+ . $mi->inline_set_slot_value(
'$instance',
- $attr->name,
+ $attr_name,
$default
)
. "\n" . '}'