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

Reflect Filtered, extension attribs fix, generic arg BfAstNode

This commit is contained in:
Brian Fiete 2022-02-04 12:00:43 -05:00
parent 6315d81207
commit 361be9dc92
13 changed files with 75 additions and 26 deletions

View file

@ -974,6 +974,16 @@ bool BfTypeDef::HasSource(BfSource* source)
return false;
}
bool BfTypeDef::HasCustomAttributes()
{
if ((mTypeDeclaration != NULL) && (mTypeDeclaration->mAttributes != NULL))
return true;
for (auto& partial : mPartials)
if ((partial->mTypeDeclaration != NULL) && (partial->mTypeDeclaration->mAttributes != NULL))
return true;
return false;
}
//////////////////////////////////////////////////////////////////////////
BfProject::BfProject()