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

Method GetPrimaryType

IDEHelper/DbgModule.cpp:1515–1535  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1513}
1514
1515DbgType* DbgType::GetPrimaryType()
1516{
1517 if (mPrimaryType != NULL)
1518 return mPrimaryType;
1519
1520 mPrimaryType = this;
1521 if (mPriority <= DbgTypePriority_Normal)
1522 {
1523 if ((mCompileUnit != NULL) &&
1524 ((mCompileUnit->mLanguage == DbgLanguage_Beef)|| (mLanguage == DbgLanguage_Beef) ||
1525 (mTypeCode == DbgType_Namespace) || (mIsDeclaration)))
1526 {
1527 mPrimaryType = mCompileUnit->mDbgModule->GetPrimaryType(this);
1528 mPrimaryType->PopulateType();
1529 mTypeCode = mPrimaryType->mTypeCode;
1530 mTypeParam = mPrimaryType->mTypeParam;
1531 }
1532 }
1533
1534 return mPrimaryType;
1535}
1536
1537DbgType* DbgType::GetBaseType()
1538{

Callers 15

CheckTypeMethod · 0.80
GetNamespaceSearchMethod · 0.80
TypeIsSubTypeOfMethod · 0.80
CanCastMethod · 0.80
CastMethod · 0.80
HasFieldMethod · 0.80
DoLookupFieldMethod · 0.80
ReadTypedValueMethod · 0.80
CheckTupleCreationMethod · 0.80
CheckEnumCreationMethod · 0.80
DoLookupIdentifierMethod · 0.80

Calls 3

IsBfObjectPtrMethod · 0.80
RemoveModifiersMethod · 0.80
PopulateTypeMethod · 0.45

Tested by

no test coverage detected