Improved separation of concerns
This commit is contained in:
parent
dc5456b820
commit
abba962455
36 changed files with 243 additions and 236 deletions
|
@ -13,12 +13,12 @@ func (f *Function) UsesRegister(expr *expression.Expression, register cpu.Regist
|
|||
}
|
||||
|
||||
if ast.IsFunctionCall(expr) {
|
||||
if register == f.cpu.Output[0] {
|
||||
if register == f.CPU.Output[0] {
|
||||
return true
|
||||
}
|
||||
|
||||
for i, parameter := range expr.Children[1:] {
|
||||
if register == f.cpu.Input[i] {
|
||||
if register == f.CPU.Input[i] {
|
||||
return true
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue