bool EqualSignature(CallIndirect other) { if (IsInstance != other.IsInstance) { return(false); } if (HasExplicitThis != other.HasExplicitThis) { return(false); } if (CallingConvention != other.CallingConvention) { return(false); } if (ParameterTypes.Length != other.ParameterTypes.Length) { return(false); } for (int i = 0; i < ParameterTypes.Length; i++) { if (!ParameterTypes[i].Equals(other.ParameterTypes[i])) { return(false); } } return(ReturnType.Equals(other.ReturnType)); }
bool EqualSignature(CallIndirect other) { if (IsInstance != other.IsInstance) { return(false); } if (HasExplicitThis != other.HasExplicitThis) { return(false); } return(FunctionPointerType.Equals(other.FunctionPointerType)); }