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

Method DoPopulateType_CeCheckEnum

IDEHelper/Compiler/BfModuleTypeUtils.cpp:3795–3811  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3793}
3794
3795void BfModule::DoPopulateType_CeCheckEnum(BfTypeInstance* typeInstance, bool underlyingTypeDeferred)
3796{
3797 if (!typeInstance->IsEnum())
3798 return;
3799 if (!typeInstance->IsPayloadEnum())
3800 return;
3801 if ((typeInstance->mCeTypeInfo != NULL) && (typeInstance->mCeTypeInfo->mNext != NULL))
3802 return;
3803
3804 BfType* unionInnerType = NULL;
3805 if (typeInstance->mIsUnion)
3806 {
3807 SetAndRestoreValue<BfTypeState::ResolveKind> prevResolveKind(mContext->mCurTypeState->mResolveKind, BfTypeState::ResolveKind_UnionInnerType);
3808 unionInnerType = typeInstance->GetUnionInnerType();
3809 }
3810 DoPopulateType_FinishEnum(typeInstance, underlyingTypeDeferred, NULL, unionInnerType);
3811}
3812
3813void BfModule::DoPopulateType(BfType* resolvedTypeRef, BfPopulateType populateType)
3814{

Callers

nothing calls this directly

Calls 3

GetUnionInnerTypeMethod · 0.80
IsEnumMethod · 0.45
IsPayloadEnumMethod · 0.45

Tested by

no test coverage detected