analysis: add bump-dump scope to loop analysis
This commit is contained in:
parent
881833b187
commit
d69a64dbfb
1 changed files with 4 additions and 1 deletions
|
@ -432,10 +432,13 @@ pub const Analyzer = struct {
|
||||||
try self.expectSymUnTypeEnum(expr, .Bool);
|
try self.expectSymUnTypeEnum(expr, .Bool);
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO bump-dump scope
|
try ctx.bumpScope("loop");
|
||||||
|
|
||||||
for (loop.then_branch.toSlice()) |then_stmt| {
|
for (loop.then_branch.toSlice()) |then_stmt| {
|
||||||
try self.stmtPass(ctx, then_stmt);
|
try self.stmtPass(ctx, then_stmt);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ctx.dumpScope();
|
||||||
},
|
},
|
||||||
|
|
||||||
// For (creates 1 scope) receives arrays, which we dont have yet
|
// For (creates 1 scope) receives arrays, which we dont have yet
|
||||||
|
|
Loading…
Reference in a new issue