diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-09 01:10:15 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-09 01:10:15 +0000 |
commit | 1e395da1f5c489ca65e175e3c11cb3ccb33900ff (patch) | |
tree | 0a0ffe0288cc1a8547917a3f2bafb8551e4276d2 /parse.y | |
parent | f651ff638d39b26210722e53e8eb74773d00bd77 (diff) | |
download | ruby-1e395da1f5c489ca65e175e3c11cb3ccb33900ff.tar.gz |
parse.y: use change_shortcut_operator_id
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -1464,13 +1464,7 @@ command_asgn : lhs '=' command_rhs value_expr($6); $3 = make_array($3, &@3); args = arg_concat($3, $6, &@$); - if ($5 == tOROP) { - $5 = 0; - } - else if ($5 == tANDOP) { - $5 = 1; - } - $$ = NEW_OP_ASGN1($1, $5, args, &@$); + $$ = NEW_OP_ASGN1($1, change_shortcut_operator_id($5), args, &@$); fixpos($$, $1); /*% $$ = dispatch2(aref_field, $1, escape_Qundef($3)); |