Add a recursion depth limit for #3987 with a consideration to use a switch statement or refactor the code to not use a large if-else chain

This commit is contained in:
gingerBill
2024-08-24 12:59:17 +01:00
parent 683dde1fa0
commit a4cc207022
2 changed files with 10 additions and 0 deletions
+2
View File
@@ -120,6 +120,8 @@ struct AstFile {
bool allow_type;
bool in_when_statement;
isize recursion_depth_else_if;
isize total_file_decl_count;
isize delayed_decl_count;
Slice<Ast *> decls;