Skip to content
Permalink
Browse files
parser_dump() to show symbol number for NODE_SYM
  • Loading branch information
matz committed May 15, 2016
1 parent 5933651 commit 2e81fee7316d9604d96bb6e0966f2817520bb98d
Showing 1 changed file with 2 additions and 1 deletion.
@@ -6240,7 +6240,8 @@ mrb_parser_dump(mrb_state *mrb, node *tree, int offset)
break;

case NODE_SYM:
printf("NODE_SYM :%s\n", mrb_sym2name(mrb, sym(tree)));
printf("NODE_SYM :%s (%d)\n", mrb_sym2name(mrb, sym(tree)),
(int)(intptr_t)tree);
break;

case NODE_SELF:

0 comments on commit 2e81fee

Please sign in to comment.