summaryrefslogtreecommitdiff
path: root/ast.c
diff options
context:
space:
mode:
authormanga_osyo <manga.osyo@gmail.com>2020-07-05 20:58:55 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-07-06 00:48:15 +0900
commit8e189df32cacef4b21e357a590d349330532baf5 (patch)
tree16c98959902e4a00baced105bf566d6bcf58beb0 /ast.c
parent988b4bc9eab1e22e4bef7812e878c8ef4ed5ac0f (diff)
Add operator info to `OP_ASGN2` of `RubyVM::AbstractSyntaxTree`.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3294
Diffstat (limited to 'ast.c')
-rw-r--r--ast.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ast.c b/ast.c
index e43f6f86ed..27a1074871 100644
--- a/ast.c
+++ b/ast.c
@@ -398,9 +398,10 @@ node_children(rb_ast_t *ast, NODE *node)
NEW_CHILD(ast, node->nd_args->nd_head),
NEW_CHILD(ast, node->nd_args->nd_body));
case NODE_OP_ASGN2:
- return rb_ary_new_from_args(4, NEW_CHILD(ast, node->nd_recv),
+ return rb_ary_new_from_args(5, NEW_CHILD(ast, node->nd_recv),
node->nd_next->nd_aid ? Qtrue : Qfalse,
ID2SYM(node->nd_next->nd_vid),
+ ID2SYM(node->nd_next->nd_mid),
NEW_CHILD(ast, node->nd_value));
case NODE_OP_ASGN_AND:
return rb_ary_new_from_args(3, NEW_CHILD(ast, node->nd_head), ID2SYM(idANDOP),