Simplified variable usage

This commit is contained in:
2024-07-22 19:10:14 +02:00
parent 504111734f
commit c027208369
8 changed files with 45 additions and 44 deletions

View File

@ -21,7 +21,7 @@ func (f *Function) CompileAssign(node *ast.Assign) error {
return errors.New(&errors.UnknownIdentifier{Name: name}, f.File, left.Token.Position)
}
defer f.useVariable(variable)
defer f.UseVariable(variable)
return f.Execute(operator, variable.Register, right)
}
@ -33,7 +33,7 @@ func (f *Function) CompileAssign(node *ast.Assign) error {
return errors.New(&errors.UnknownIdentifier{Name: name}, f.File, left.Children[0].Token.Position)
}
defer f.useVariable(variable)
defer f.UseVariable(variable)
index := left.Children[1]
offset, _, err := f.Number(index.Token)