Exemple #1
0
        internal static Symbol LookupName(string name)
        {
            Symbol v = Global.Lookup(name);

            foreach (var u in Usings)
            {
                v = Symbol.Join(v, u.Lookup(name));
            }
            if (!v.HasFunctions())
            {
                foreach (var u in RuntimeFunctions)
                {
                    v = Symbol.Join(v, u.Lookup(name));
                }
            }
            return(v);
        }
Exemple #2
0
        internal static Symbol LookupName(string name)
        {
            Symbol v = Global.Lookup(name);

            // prevent "Collection was modified" error
            foreach (var u in Usings.ToArray())
            {
                v = Symbol.Join(v, u.Lookup(name));
            }
            if (!v.HasFunctions())
            {
                // prevent "Collection was modified" error
                foreach (var u in RuntimeFunctions.ToArray())
                {
                    v = Symbol.Join(v, u.Lookup(name));
                }
            }
            return(v);
        }