public static Result Run(FunctionDeclarationExpression expression, Scope scope) { ScriptScope script_scope = null; scope.FindNearestScope <ScriptScope> (ss => script_scope = ss); scope.Root.Functions.Add(new InterpretedFunction(expression, script_scope)); return(Result.NULL); }
public InterpretedFunction(FunctionDeclarationExpression expression, ScriptScope script_scope) { _expression = expression; _script_scope = script_scope; }