YAMP.ParseContext.LoadFunction C# (CSharp) Method

LoadFunction() public method

Tries to load a function from a given file.
public LoadFunction ( String symbolName ) : IFunction
symbolName String /// The name of the function (equals the name of the file). ///
return IFunction
        public IFunction LoadFunction(String symbolName)
        {
            foreach (var loader in Elements.Loaders)
            {
                var function = loader.Load(symbolName);

                if (function != null)
                {
                    return function;
                }
            }

            return null;
        }