public override bool Equals(object obj) { FunctionSymbol f = obj as FunctionSymbol; if (f != null) { return(f.Name == this.Name); } return(false); }
/// <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); }