示例#1
0
        public override bool Equals(object obj)
        {
            FunctionSymbol f = obj as FunctionSymbol;

            if (f != null)
            {
                return(f.Name == this.Name);
            }

            return(false);
        }
示例#2
0
        /// <summary>
        /// Transform FunctionSymbol(s) to the more compact FuncInfo structure
        /// </summary>
        /// <returns></returns>
        private object[] FinalizeConstPool()
        {
            object[] finalConstPool = new object[_constPool.Count];

            for (int i = 0; i < _constPool.Count; ++i)
            {
                object         obj = _constPool[i];
                FunctionSymbol fs  = obj as FunctionSymbol;
                if (fs != null)
                {
                    finalConstPool[i] = fs.ToFunctionInfo();
                }
                else
                {
                    finalConstPool[i] = obj;
                }
            }

            return(finalConstPool);
        }