sub _inline_optimized_set_new_value {
my ( $self, $inv, $new, $slot_access ) = @_;
- return "$slot_access = [];";
+ return "$slot_access = []";
}
1;
sub _inline_optimized_set_new_value {
my ( $self, $inv, $new, $slot_access ) = @_;
- return "splice \@{ $slot_access }, \$_[0], 1;";
+ return "splice \@{ $slot_access }, \$_[0], 1";
}
1;
sub _inline_optimized_set_new_value {
my ( $self, $inv, $new, $slot_access ) = @_;
- return "pop \@{ $slot_access };";
+ return "pop \@{ $slot_access }";
}
sub _return_value {
sub _inline_optimized_set_new_value {
my ( $self, $inv, $new, $slot_access ) = @_;
- return "push \@{ $slot_access }, \@_;";
+ return "push \@{ $slot_access }, \@_";
}
1;
sub _inline_optimized_set_new_value {
my ( $self, $inv, $new, $slot_access ) = @_;
- return "${slot_access}->[ \$_[0] ] = \$_[1];";
+ return "${slot_access}->[ \$_[0] ] = \$_[1]";
}
1;
sub _inline_optimized_set_new_value {
my ( $self, $inv, $new, $slot_access ) = @_;
- return "defined \$len ? ( splice \@{ $slot_access }, \$idx, \$len, \@_ ) : ( splice \@{ $slot_access }, \$idx );";
+ return "defined \$len ? ( splice \@{ $slot_access }, \$idx, \$len, \@_ ) : ( splice \@{ $slot_access }, \$idx )";
}
1;
sub _inline_optimized_set_new_value {
my ( $self, $inv, $new, $slot_access ) = @_;
- return "unshift \@{ $slot_access }, \@_;";
+ return "unshift \@{ $slot_access }, \@_";
}
1;
sub _inline_optimized_set_new_value {
my ( $self, $inv, $new, $slot_access ) = @_;
- return "$slot_access = 1;";
+ return "$slot_access = 1";
}
1;
sub _inline_optimized_set_new_value {
my ( $self, $inv, $new, $slot_access ) = @_;
- return "$slot_access = $slot_access ? 0 : 1;";
+ return "$slot_access = $slot_access ? 0 : 1";
}
1;
sub _inline_optimized_set_new_value {
my ( $self, $inv, $new, $slot_access ) = @_;
- return "$slot_access = 0;";
+ return "$slot_access = 0";
}
1;
sub _potential_value {
my ( $self, $slot_access ) = @_;
- return "$slot_access - ( defined \$_[0] ? \$_[0] : 1 );";
+ return "$slot_access - ( defined \$_[0] ? \$_[0] : 1 )";
}
sub _inline_optimized_set_new_value {
my ( $self, $inv, $new, $slot_access ) = @_;
- return "$slot_access -= defined \$_[0] ? \$_[0] : 1;";
+ return "$slot_access -= defined \$_[0] ? \$_[0] : 1";
}
1;
sub _potential_value {
my ( $self, $slot_access ) = @_;
- return "$slot_access + ( defined \$_[0] ? \$_[0] : 1 );";
+ return "$slot_access + ( defined \$_[0] ? \$_[0] : 1 )";
}
sub _inline_optimized_set_new_value {
my ( $self, $inv, $new, $slot_access ) = @_;
- return "$slot_access += defined \$_[0] ? \$_[0] : 1;";
+ return "$slot_access += defined \$_[0] ? \$_[0] : 1";
}
1;
sub _inline_optimized_set_new_value {
my ( $self, $inv, $new, $slot_access ) = @_;
- return "$slot_access = \$attr->default(\$self);";
+ return "$slot_access = \$attr->default(\$self)";
}
1;
sub _inline_optimized_set_new_value {
my ( $self, $inv, $new, $slot_access ) = @_;
- return "$slot_access = {};";
+ return "$slot_access = {}";
}
1;
sub _inline_optimized_set_new_value {
my ( $self, $inv, $new, $slot_access ) = @_;
- return "delete \@{ $slot_access }{\@_};";
+ return "delete \@{ $slot_access }{\@_}";
}
1;
sub _inline_optimized_set_new_value {
my ( $self, $inv, $new, $slot_access ) = @_;
- return "\@{ $slot_access }{ \@_[ \@keys_idx] } = \@_[ \@values_idx ];";
+ return "\@{ $slot_access }{ \@_[ \@keys_idx] } = \@_[ \@values_idx ]";
}
1;
sub _potential_value {
my ( $self, $slot_access ) = @_;
- return "abs($slot_access);";
+ return "abs($slot_access)";
}
sub _inline_optimized_set_new_value {
sub _potential_value {
my ( $self, $slot_access ) = @_;
- return "$slot_access + \$_[0];";
+ return "$slot_access + \$_[0]";
}
sub _inline_optimized_set_new_value {
my ( $self, $inv, $new, $slot_access ) = @_;
- return "$slot_access += \$_[0];";
+ return "$slot_access += \$_[0]";
}
1;
sub _potential_value {
my ( $self, $slot_access ) = @_;
- return "$slot_access / \$_[0];";
+ return "$slot_access / \$_[0]";
}
sub _inline_optimized_set_new_value {
my ( $self, $inv, $new, $slot_access ) = @_;
- return "$slot_access /= \$_[0];";
+ return "$slot_access /= \$_[0]";
}
1;
sub _potential_value {
my ( $self, $slot_access ) = @_;
- return "$slot_access % \$_[0];";
+ return "$slot_access % \$_[0]";
}
sub _inline_optimized_set_new_value {
my ( $self, $inv, $new, $slot_access ) = @_;
- return "$slot_access %= \$_[0];";
+ return "$slot_access %= \$_[0]";
}
1;
sub _potential_value {
my ( $self, $slot_access ) = @_;
- return "$slot_access * \$_[0];";
+ return "$slot_access * \$_[0]";
}
sub _inline_optimized_set_new_value {
my ( $self, $inv, $new, $slot_access ) = @_;
- return "$slot_access *= \$_[0];";
+ return "$slot_access *= \$_[0]";
}
1;
sub _inline_optimized_set_new_value {
my ( $self, $inv, $new, $slot_access ) = @_;
- return "$slot_access = \$_[0];";
+ return "$slot_access = \$_[0]";
}
1;
sub _potential_value {
my ( $self, $slot_access ) = @_;
- return "$slot_access - \$_[0];";
+ return "$slot_access - \$_[0]";
}
sub _inline_optimized_set_new_value {
my ( $self, $inv, $new, $slot_access ) = @_;
- return "$slot_access -= \$_[0];";
+ return "$slot_access -= \$_[0]";
}
1;
sub _inline_optimized_set_new_value {
my ( $self, $inv, $new, $slot_access ) = @_;
- return "$slot_access .= \$_[0];";
+ return "$slot_access .= \$_[0]";
}
1;
sub _inline_optimized_set_new_value {
my ( $self, $inv, $new, $slot_access ) = @_;
- return "chomp $slot_access;";
+ return "chomp $slot_access";
}
1;
sub _inline_optimized_set_new_value {
my ( $self, $inv, $new, $slot_access ) = @_;
- return "chop $slot_access;";
+ return "chop $slot_access";
}
1;
sub _inline_optimized_set_new_value {
my ( $self, $inv, $new, $slot_access ) = @_;
- return "$slot_access = q{};";
+ return "$slot_access = q{}";
}
1;
sub _inline_optimized_set_new_value {
my ( $self, $inv, $new, $slot_access ) = @_;
- return "${slot_access}++;";
+ return "${slot_access}++";
}
1;
sub _inline_optimized_set_new_value {
my ( $self, $inv, $new, $slot_access ) = @_;
- return "$slot_access = \$_[0] . $slot_access;";
+ return "$slot_access = \$_[0] . $slot_access";
}
1;
sub _inline_optimized_set_new_value {
my ( $self, $inv, $new, $slot_access ) = @_;
- return "substr $slot_access, \$offset, \$length, \$replacement;";
+ return "substr $slot_access, \$offset, \$length, \$replacement";
}
sub _return_value {
$inv,
$potential_value,
$slot_access,
- );
+ ) . ';';
$code .= "\n" . $self->_inline_trigger( $inv, $slot_access, '@old' );
$code .= "\n" . $self->_return_value( $slot_access, 'for writer' );