diff --git a/Upsilon/Evaluator/Evaluator.cs b/Upsilon/Evaluator/Evaluator.cs index a79edce..020e384 100644 --- a/Upsilon/Evaluator/Evaluator.cs +++ b/Upsilon/Evaluator/Evaluator.cs @@ -16,7 +16,7 @@ namespace Upsilon.Evaluator { internal class Evaluator : IDisposable { - private Script _script; + private readonly Script _script; private Diagnostics _diagnostics; private ScriptType _lastValue; private ScriptType _returnValue; @@ -65,7 +65,6 @@ namespace Upsilon.Evaluator public ScriptType Evaluate(BoundScript e, string functionName, object[] parameters) { - EvaluateNode(e.Statement); if (!Scope.TryGet(functionName, out var statement) || statement.Type != Type.Function) { throw new ArgumentException(($"Function '{functionName}' could not be found"));