Moved register state to scopes
This commit is contained in:
parent
3bd5b20af3
commit
545c8dd4f6
22 changed files with 230 additions and 129 deletions
|
@ -18,7 +18,7 @@ func (f *Function) CompileIf(branch *ast.If) error {
|
|||
}
|
||||
|
||||
f.AddLabel(success)
|
||||
f.pushScope()
|
||||
f.pushScope(branch.Body)
|
||||
err = f.CompileAST(branch.Body)
|
||||
f.popScope()
|
||||
f.AddLabel(fail)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue