1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00

Filter extension attributes based on constraint matching

This commit is contained in:
Brian Fiete 2024-03-23 12:27:38 -04:00
parent f46f49f1db
commit 732af58138

View file

@ -4677,6 +4677,9 @@ void BfModule::DoPopulateType(BfType* resolvedTypeRef, BfPopulateType populateTy
if (partialTypeDef->mTypeDeclaration->mAttributes == NULL)
continue;
if (!typeInstance->IsTypeMemberIncluded(partialTypeDef))
continue;
typeState.mCurTypeDef = partialTypeDef;
GetCustomAttributes(customAttributes, partialTypeDef->mTypeDeclaration->mAttributes, attrTarget);
}