Added scope package
This commit is contained in:
parent
fd66296826
commit
8e725da9c6
37 changed files with 416 additions and 371 deletions
|
@ -18,9 +18,9 @@ func (f *Function) CompileIf(branch *ast.If) error {
|
|||
}
|
||||
|
||||
f.AddLabel(success)
|
||||
f.pushScope(branch.Body)
|
||||
f.PushScope(branch.Body)
|
||||
err = f.CompileAST(branch.Body)
|
||||
f.popScope()
|
||||
f.PopScope()
|
||||
f.AddLabel(fail)
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue