ruby-changes:48717
From: yui-knk <ko1@a...>
Date: Sat, 18 Nov 2017 12:32:10 +0900 (JST)
Subject: [ruby-changes:48717] yui-knk:r60833 (trunk): parse.y: Use node_assign
yui-knk 2017-11-18 12:32:05 +0900 (Sat, 18 Nov 2017) New Revision: 60833 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60833 Log: parse.y: Use node_assign Modified files: trunk/parse.y Index: parse.y =================================================================== --- parse.y (revision 60832) +++ parse.y (revision 60833) @@ -1471,8 +1471,7 @@ stmt : keyword_alias fitem {SET_LEX_STA https://github.com/ruby/ruby/blob/trunk/parse.y#L1471 { /*%%%*/ value_expr($3); - $1->nd_value = $3; - $$ = $1; + $$ = node_assign($1, $3, &@$); /*% $$ = dispatch2(massign, $1, $3); %*/ @@ -1485,8 +1484,7 @@ stmt : keyword_alias fitem {SET_LEX_STA https://github.com/ruby/ruby/blob/trunk/parse.y#L1484 | mlhs '=' mrhs_arg { /*%%%*/ - $1->nd_value = $3; - $$ = $1; + $$ = node_assign($1, $3, &@$); /*% $$ = dispatch2(massign, $1, $3); %*/ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/