'not between' => '_expand_between',
'in' => '_expand_in',
'not in' => '_expand_in',
+ 'ident' => sub {
+ my ($self, $op, $arg, $k) = @_;
+ return +{ -op => [
+ $self->{cmp},
+ $self->_expand_ident(-ident => $k),
+ $self->_expand_expr({ '-'.$op => $arg }),
+ ] };
+ },
};
$opt{render} = {
if (my $x = $self->{expand_op}{$op}) {
return $self->$x($op, $vv, $k);
}
- if ($op eq 'ident') {
- return +{ -op => [
- $self->{cmp},
- $self->_expand_ident(-ident => $k),
- $self->_expand_expr({ -ident => $vv }),
- ] };
- }
if ($op eq 'value') {
return $self->_expand_expr({ $k, undef }) unless defined($vv);
return +{ -op => [