analysis: add bump-dump scope to loop analysis

This commit is contained in:
Luna 2019-10-05 10:30:01 -03:00
parent 881833b187
commit d69a64dbfb

View file

@ -432,10 +432,13 @@ pub const Analyzer = struct {
try self.expectSymUnTypeEnum(expr, .Bool);
}
// TODO bump-dump scope
try ctx.bumpScope("loop");
for (loop.then_branch.toSlice()) |then_stmt| {
try self.stmtPass(ctx, then_stmt);
}
ctx.dumpScope();
},
// For (creates 1 scope) receives arrays, which we dont have yet