aboutsummaryrefslogtreecommitdiffstats
path: root/node.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-06-23 11:56:48 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-06-23 11:56:48 +0000
commit5e648b8efe0e835d611973505a087a104425b2d4 (patch)
treeb2de6089808cea65aa1d68edbc0632d4d775e527 /node.c
parent51e231471b1fa6ac3f3a808d8c389bf614f47b68 (diff)
downloadruby-5e648b8efe0e835d611973505a087a104425b2d4.tar.gz
parse.y: should not warn op method call
* parse.y (void_expr_gen): should warn operator expression style calls only, but not method style calls. [Fix GH-1660] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'node.c')
-rw-r--r--node.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/node.c b/node.c
index b06e6dc175..f6d551a106 100644
--- a/node.c
+++ b/node.c
@@ -475,6 +475,7 @@ dump_node(VALUE buf, VALUE indent, int comment, NODE *node)
break;
case NODE_CALL:
+ case NODE_OPCALL:
ANN("method invocation");
ANN("format: [nd_recv].[nd_mid]([nd_args])");
ANN("example: obj.foo(1)");