Add or_break and or_continue constructs

This commit is contained in:
gingerBill
2023-09-30 15:04:17 +01:00
parent 4e97b83312
commit 648b83d6ea
11 changed files with 401 additions and 82 deletions
+5
View File
@@ -102,8 +102,13 @@ gb_internal void check_stmt_list(CheckerContext *ctx, Slice<Ast *> const &stmts,
new_flags |= Stmt_FallthroughAllowed;
}
u32 prev_stmt_flags = ctx->stmt_flags;
ctx->stmt_flags = new_flags;
check_stmt(ctx, n, new_flags);
ctx->stmt_flags = prev_stmt_flags;
if (i+1 < max_non_constant_declaration) {
switch (n->kind) {
case Ast_ReturnStmt: