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

Method ForcingThisPtr

IDEHelper/Compiler/BfResolvedTypeUtils.cpp:903–915  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

901}
902
903bool BfMethodInstance::ForcingThisPtr()
904{
905 if (mMethodDef->mHasExplicitThis)
906 {
907 auto thisType = mParams[0].mResolvedType;
908 if (thisType->IsCRepr())
909 return true;
910 }
911 else if (mMethodInstanceGroup->mOwner->IsCRepr())
912 return true;
913
914 return (mCallingConvention == BfCallingConvention_Cdecl);
915}
916
917bool Beefy::BfMethodInstance::IsSpecializedGenericMethod()
918{

Callers 5

GetThisMethod · 0.80
ProcessMethodMethod · 0.80
DoMethodDeclarationMethod · 0.80
PushThisMethod · 0.80

Calls 1

IsCReprMethod · 0.45

Tested by

no test coverage detected