mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Handle zero-sized enums (<= 1 member)
This commit is contained in:
parent
7b69509b7b
commit
14a3dd8e7d
21 changed files with 461 additions and 135 deletions
|
@ -427,6 +427,12 @@ void BfParameterDef::SetName(BfAstNode* nameNode)
|
|||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
bool BfFieldDef::IsEnumCaseEntry()
|
||||
{
|
||||
return ((mFieldDeclaration != NULL) && (BfNodeIsA<BfEnumEntryDeclaration>(mFieldDeclaration))) ||
|
||||
((mFieldDeclaration == NULL) && (mIsConst) && (mDeclaringType->mTypeCode == BfTypeCode_Enum));
|
||||
}
|
||||
|
||||
bool BfPropertyDef::IsVirtual()
|
||||
{
|
||||
if (((BfPropertyDeclaration*)mFieldDeclaration)->mVirtualSpecifier)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue