mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 20:42:21 +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
|
@ -389,6 +389,7 @@ class BfVarRefTypeReference;
|
|||
class BfLetTypeReference;
|
||||
class BfGenericInstanceTypeRef;
|
||||
class BfTupleTypeRef;
|
||||
class BfTagTypeRef;
|
||||
class BfDelegateTypeRef;
|
||||
class BfExprModTypeRef;
|
||||
class BfCommentNode;
|
||||
|
@ -561,6 +562,7 @@ public:
|
|||
virtual void Visit(BfArrayTypeRef* typeRef);
|
||||
virtual void Visit(BfGenericInstanceTypeRef* typeRef);
|
||||
virtual void Visit(BfTupleTypeRef* typeRef);
|
||||
virtual void Visit(BfTagTypeRef* typeRef);
|
||||
virtual void Visit(BfDelegateTypeRef* typeRef);
|
||||
virtual void Visit(BfExprModTypeRef* declTypeRef);
|
||||
virtual void Visit(BfPointerTypeRef* typeRef);
|
||||
|
@ -2667,6 +2669,15 @@ public:
|
|||
}
|
||||
}; BF_AST_DECL(BfTupleTypeRef, BfElementedTypeRef);
|
||||
|
||||
class BfTagTypeRef : public BfTypeReference
|
||||
{
|
||||
public:
|
||||
BF_AST_TYPE(BfTagTypeRef, BfTypeReference);
|
||||
|
||||
BfIdentifierNode* mTagNode;
|
||||
BfIdentifierNode* mNameNode;
|
||||
}; BF_AST_DECL(BfTagTypeRef, BfTypeReference);
|
||||
|
||||
class BfDelegateTypeRef : public BfTypeReference
|
||||
{
|
||||
public:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue