ruby-changes:49584
From: nobu <ko1@a...>
Date: Tue, 9 Jan 2018 10:10:20 +0900 (JST)
Subject: [ruby-changes:49584] nobu:r61699 (trunk): parse.y: use change_shortcut_operator_id
nobu 2018-01-09 10:10:15 +0900 (Tue, 09 Jan 2018) New Revision: 61699 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61699 Log: parse.y: use change_shortcut_operator_id Modified files: trunk/parse.y Index: parse.y =================================================================== --- parse.y (revision 61698) +++ parse.y (revision 61699) @@ -1464,13 +1464,7 @@ command_asgn : lhs '=' command_rhs https://github.com/ruby/ruby/blob/trunk/parse.y#L1464 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)); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/