ruby-changes:47064
From: nobu <ko1@a...>
Date: Mon, 26 Jun 2017 19:31:39 +0900 (JST)
Subject: [ruby-changes:47064] nobu:r59179 (trunk): parse.y: line number of bin op
nobu 2017-06-26 19:31:34 +0900 (Mon, 26 Jun 2017) New Revision: 59179 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59179 Log: parse.y: line number of bin op * parse.y (call_bin_op_gen): adjust line number to the receiver, instead of the rhs. Modified files: trunk/parse.y Index: parse.y =================================================================== --- parse.y (revision 59178) +++ parse.y (revision 59179) @@ -8842,9 +8842,12 @@ new_evstr_gen(struct parser_params *pars https://github.com/ruby/ruby/blob/trunk/parse.y#L8842 static NODE * call_bin_op_gen(struct parser_params *parser, NODE *recv, ID id, NODE *arg1) { + NODE *expr; value_expr(recv); value_expr(arg1); - return NEW_OPCALL(recv, id, NEW_LIST(arg1)); + expr = NEW_OPCALL(recv, id, NEW_LIST(arg1)); + fixpos(expr, recv); + return expr; } static NODE * -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/