AST debug cleanup

- Add ArrayIterationStmt printer.
- Mark ZCC_TreeNodes as const for the AST printers.
- Use static_assert to catch missing printers without needing to run with -dumpast.
This commit is contained in:
Marisa Heit 2022-11-25 11:35:13 -06:00 committed by Christoph Oelckers
commit 70df34674b
3 changed files with 98 additions and 82 deletions

View file

@ -601,7 +601,7 @@ struct ZCC_MixinStmt : ZCC_Statement
ENamedName MixinName;
};
FString ZCC_PrintAST(ZCC_TreeNode *root);
FString ZCC_PrintAST(const ZCC_TreeNode *root);
struct ZCC_AST