Method: Ruby27Parser#_reduce_529
- Defined in:
- lib/ruby27_parser.rb
#_reduce_529(val, _values, result) ⇒ Object
11686 11687 11688 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705 11706 11707 11708 11709 11710 11711 |
# File 'lib/ruby27_parser.rb', line 11686 def _reduce_529(val, _values, result) lhs, = val # TODO: error_duplicate_pattern_variable(p, get_id($1), &@1); # TODO: if ($1 && !is_local_id(get_id($1))) { # yyerror1(&@1, "key must be valid as local variables"); # } # $$ = list_append(p, NEW_LIST(NEW_LIT(ID2SYM($1), &@$), &@$), # assignable(p, $1, 0, &@$)); case lhs.sexp_type when :lit then assignable [lhs.value, lhs.line] else # TODO or done? debug 666 end # TODO PAIR -> LIST ? result = s(:PAIR, lhs, nil).line lhs.line result end |