not_between => '_expand_between',
op => '_expand_op',
(map +($_ => '_expand_op_is'), ('is', 'is_not')),
- ident => '_expand_ident',
- value => '_expand_value',
func => '_expand_func',
values => '_expand_values',
},
};
};
$self->clone
- ->wrap_expanders(map +($_ => $_wrap), qw(ident value bind))
- ->wrap_op_expanders(map +($_ => $_wrap), qw(ident value bind))
+ ->wrap_expander(bind => $_wrap)
+ ->wrap_op_expanders(map +($_ => $_wrap), qw(ident value))
->wrap_expander(func => sub {
my $orig = shift;
sub {
}
}
- if (my $exp = $self->{expand}{$op}) {
+ if (my $exp = $self->{expand}{$op}||$self->{expand_op}{$op}) {
return $self->$exp($op, $v);
}