Example #1
0
        public Function GetFunction(string functionName, SourcePosition sourcePosition)
        {
            if (this.HasFunction(functionName))
            {
                return((Function)variablesAndFunctions[functionName]);
            }
            else if (parentscope != null)
            {
                return(parentscope.GetFunction(functionName, sourcePosition));
            }

            throw new UnsetFunctionException(functionName, sourcePosition);
        }