Esempio n. 1
0
        public virtual void Remove(string name)
        {
            int count = mLevels.Count;

            for (int i = count - 1; i >= 0; i--)
            {
                LocalSymbolList list   = mLevels[i];
                int             lindex = list.Find(name);
                if (lindex != -1)
                {
                    list.Remove(lindex);
                    return;
                }
            }
        }
Esempio n. 2
0
        public virtual int Find(string name)
        {
            int count = mLevels.Count;

            for (int i = count - 1; i >= 0; i--)
            {
                LocalSymbolList list   = mLevels[i];
                int             lindex = list.Find(name);
                if (lindex != -1)
                {
                    return(lindex + list.GetLocalCountStart());
                }
            }
            return(-1);
        }