Skip to content

Commit

Permalink
Print NODE_SCALL (&.) from mrb_parser_dump()
Browse files Browse the repository at this point in the history
  • Loading branch information
matz committed Dec 3, 2016
1 parent c029c6c commit 6b84ff4
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion mrbgems/mruby-compiler/core/parse.y
Expand Up @@ -6067,7 +6067,17 @@ mrb_parser_dump(mrb_state *mrb, node *tree, int offset)

case NODE_FCALL:
case NODE_CALL:
printf("NODE_CALL:\n");
case NODE_SCALL:
switch (nodetype) {
case NODE_FCALL:
printf("NODE_FCALL:\n"); break;
case NODE_CALL:
printf("NODE_CALL(.):\n"); break;
case NODE_SCALL:
printf("NODE_SCALL(&.):\n"); break;
default:
break;
}
mrb_parser_dump(mrb, tree->car, offset+1);
dump_prefix(tree, offset+1);
printf("method='%s' (%d)\n",
Expand Down

0 comments on commit 6b84ff4

Please sign in to comment.