From 732af581384aa1f6467347b4ada56a65fb46991e Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Sat, 23 Mar 2024 12:27:38 -0400 Subject: [PATCH] Filter extension attributes based on constraint matching --- IDEHelper/Compiler/BfModuleTypeUtils.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/IDEHelper/Compiler/BfModuleTypeUtils.cpp b/IDEHelper/Compiler/BfModuleTypeUtils.cpp index f683a4d0..77498346 100644 --- a/IDEHelper/Compiler/BfModuleTypeUtils.cpp +++ b/IDEHelper/Compiler/BfModuleTypeUtils.cpp @@ -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); }