MCPcopy Create free account
hub / github.com/beefytech/Beef / Equals

Method Equals

IDEHelper/DbgModule.cpp:747–783  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

745}
746
747bool DbgSubprogram::Equals(DbgSubprogram* checkMethod, bool allowThisMismatch)
748{
749 if ((mLinkName != NULL) && (checkMethod->mLinkName != NULL))
750 {
751 return strcmp(mLinkName, checkMethod->mLinkName) == 0;
752 }
753
754 if (strcmp(mName, checkMethod->mName) != 0)
755 return false;
756
757 if (mHasThis != checkMethod->mHasThis)
758 return false;
759
760 int paramIdx = 0;
761 auto param = mParams.mHead;
762 auto checkParam = checkMethod->mParams.mHead;
763 while ((param != NULL) && (checkParam != NULL))
764 {
765 if ((paramIdx == 0) && (allowThisMismatch))
766 {
767 // Allow
768 }
769 else if ((param->mType != checkParam->mType) && (!param->mType->Equals(checkParam->mType)))
770 return false;
771 param = param->mNext;
772 checkParam = checkParam->mNext;
773 paramIdx++;
774 }
775
776 if ((param != NULL) || (checkParam != NULL))
777 return false;
778
779 if (!mReturnType->Equals(checkMethod->mReturnType))
780 return false;
781
782 return true;
783}
784
785int DbgSubprogram::GetParamCount()
786{

Callers 15

CheckMethodMethod · 0.45
TypeIsSubTypeOfMethod · 0.45
CastMethod · 0.45
LookupSplatMemberMethod · 0.45
CheckNonDebuggerBreakMethod · 0.45
DbgTypedValueToStringMethod · 0.45
GetModuleInfoMethod · 0.45
LoadImageForModuleMethod · 0.45
NetManager.cppFile · 0.45
VerifyPathMethod · 0.45

Calls 2

GetPrimaryTypeMethod · 0.80
FixNameMethod · 0.80

Tested by

no test coverage detected