diff options
-rw-r--r-- | ast.go | 4 | ||||
-rw-r--r-- | eval.go | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -66,13 +66,13 @@ func (ast *assignAST) evalRHS(ev *Evaluator, lhs string) Var { case "=": return &recursiveVar{expr: ast.rhs, origin: origin} case "+=": - prev := ev.LookupVarInCurrentScope(lhs) + prev := ev.lookupVarInCurrentScope(lhs) if !prev.IsDefined() { return &recursiveVar{expr: ast.rhs, origin: origin} } return prev.AppendVar(ev, ast.rhs) case "?=": - prev := ev.LookupVarInCurrentScope(lhs) + prev := ev.lookupVarInCurrentScope(lhs) if prev.IsDefined() { return prev } @@ -310,7 +310,7 @@ func (ev *Evaluator) LookupVar(name string) Var { return ev.vars.Lookup(name) } -func (ev *Evaluator) LookupVarInCurrentScope(name string) Var { +func (ev *Evaluator) lookupVarInCurrentScope(name string) Var { if ev.currentScope != nil { v := ev.currentScope.Lookup(name) return v |