$opt{expand_unary} = {};
$opt{expand} = {
- '-ident' => '_expand_ident',
- '-fffvalue' => sub { +{ -bind => [ our $Cur_Col_Meta, $_[2] ] } },
+ -ident => '_expand_ident',
+ -value => sub { +{ -bind => [ our $Cur_Col_Meta, $_[2] ] } },
};
return bless \%opt, $class;
}
my ($key, $value) = %$expr;
if (my $exp = $self->{expand}{$key}) {
- $self->$exp($key, $value);
+ return $self->$exp($key, $value);
}
return $self->_expand_expr_hashpair($key, $value, $logic);
}
return { -op => [ $op, $v ] };
}
}
- if ($k eq '-value') {
- return +{ -bind => [ our $Cur_Col_Meta, $v ] };
- }
-# if ($k eq '-ident') {
-# return $self->_expand_ident(-ident => $v);
-# }
if (my $custom = $self->{expand_unary}{$k}) {
return $self->$custom($v);
}