diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-06-26 10:31:34 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-06-26 10:31:34 +0000 |
commit | a0c1006e897a525dcd1dc23fa441a4ff1682846b (patch) | |
tree | 31571a63066106d7bb24931e0e090bb5a40f4dc8 /parse.y | |
parent | fa480488f45d75019004c5774b5ac3e6a4fbaa4c (diff) | |
download | ruby-a0c1006e897a525dcd1dc23fa441a4ff1682846b.tar.gz |
parse.y: line number of bin op
* parse.y (call_bin_op_gen): adjust line number to the receiver,
instead of the rhs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59179 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -8842,9 +8842,12 @@ new_evstr_gen(struct parser_params *parser, NODE *node) 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 * |