Permalink
Browse files

Print NODE_SCALL (&.) from mrb_parser_dump()

  • Loading branch information...
matz committed Dec 3, 2016
1 parent c029c6c commit 6b84ff4a443d55a5b94d3bfa8b0a7ba9ee9646dc
Showing with 11 additions and 1 deletion.
  1. +11 −1 mrbgems/mruby-compiler/core/parse.y
@@ -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",

0 comments on commit 6b84ff4

Please sign in to comment.