expand yield to if-statements and loops

This commit is contained in:
2026-06-27 10:57:35 +02:00
parent f610be1b59
commit 61293a23e7
6 changed files with 669 additions and 17 deletions
+4
View File
@@ -149,6 +149,10 @@ Stmt :: struct {
span: source.Span,
name: symbol.Id,
index_name: symbol.Id,
// `For`/`While` loop bodies may carry a label (`blk: { ... }`); a `Yield`
// may target one (`yield :blk x`), letting a yield reach past an enclosing
// `if` to exit the labeled loop. `INVALID` when absent.
label: symbol.Id,
type: Type_Syntax,
immutable: bool,
pointer_capture: bool,