parse.y: small refactoring in mrb_parser_dump().

This commit is contained in:
Yukihiro "Matz" Matsumoto
2022-02-22 16:46:02 +09:00
parent 0282d3ec9f
commit ae231924a9
2 changed files with 8 additions and 12 deletions
+4 -6
View File
@@ -7418,12 +7418,10 @@ mrb_parser_dump(mrb_state *mrb, node *tree, int offset)
}
}
n2 = n2->cdr;
if (n2) {
if (n2->car) {
dump_prefix(n2, offset+2);
printf("post:\n");
dump_recur(mrb, n2->car, offset+3);
}
if (n2 && n2->car) {
dump_prefix(n2, offset+2);
printf("post:\n");
dump_recur(mrb, n2->car, offset+3);
}
}
}
+4 -6
View File
@@ -13649,12 +13649,10 @@ mrb_parser_dump(mrb_state *mrb, node *tree, int offset)
}
}
n2 = n2->cdr;
if (n2) {
if (n2->car) {
dump_prefix(n2, offset+2);
printf("post:\n");
dump_recur(mrb, n2->car, offset+3);
}
if (n2 && n2->car) {
dump_prefix(n2, offset+2);
printf("post:\n");
dump_recur(mrb, n2->car, offset+3);
}
}
}