Enforced consistent naming
This commit is contained in:
@ -14,15 +14,5 @@ func (f *Function) CompileAssignment(expr *expression.Expression) error {
|
||||
return errors.New(&errors.UnknownIdentifier{Name: name}, f.File, expr.Children[0].Token.Position)
|
||||
}
|
||||
|
||||
if expr.Token.Text() == "=" {
|
||||
return f.ExpressionToRegister(expr.Children[1], variable.Register)
|
||||
}
|
||||
|
||||
right := expr.Children[1]
|
||||
|
||||
if right.IsLeaf() {
|
||||
return f.Calculate(variable.Register, expr.Token, right.Token)
|
||||
}
|
||||
|
||||
return f.Execute(expr.Token, variable.Register, expr.Children[1])
|
||||
}
|
||||
|
Reference in New Issue
Block a user