We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db3d400 commit 2ae29ccCopy full SHA for 2ae29cc
ast.c
@@ -905,6 +905,19 @@ static void doASTDump(AST *ast, int indent)
905
return;
906
}
907
switch (ast->kind) {
908
+ case AST_LISTHOLDER:
909
+ printf("%*c<listholder>\n", indent, ' ');
910
+ while (ast && ast->kind == AST_LISTHOLDER) {
911
+ doASTDump(ast->left, indent+2);
912
+ ast = ast->right;
913
+ }
914
+ if (ast) {
915
+ printf("%*c<MALFORMED>\n", indent, ' ');
916
+ doASTDump(ast, indent+2);
917
+ printf("%*c</MALFORMED>\n", indent, ' ');
918
919
+ printf("%*c</listholder>\n", indent, ' ');
920
+ return;
921
case AST_STMTLIST:
922
printf("%*c<stmtlist>\n", indent, ' ');
923
while (ast && ast->kind == AST_STMTLIST) {
0 commit comments