mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Added auto-constructors (ie: 'struct Vec : this(float x, float y);')
This commit is contained in:
parent
ae0f3c5ebb
commit
9d1a5d9f3d
7 changed files with 155 additions and 9 deletions
|
@ -338,6 +338,7 @@ class BfMemberReferenceExpression;
|
|||
class BfDynamicCastExpression;
|
||||
class BfCheckTypeExpression;
|
||||
class BfConstructorDeclaration;
|
||||
class BfAutoConstructorDeclaration;
|
||||
class BfDestructorDeclaration;
|
||||
class BfQualifiedTypeReference;
|
||||
class BfUsingDirective;
|
||||
|
@ -2282,6 +2283,7 @@ public:
|
|||
BfTokenNode* mTypeNode;
|
||||
BfIdentifierNode* mNameNode;
|
||||
BfAstNode* mDefineNode;
|
||||
BfAutoConstructorDeclaration* mAutoCtor;
|
||||
BfGenericParamsDeclaration* mGenericParams;
|
||||
BfGenericConstraintsDeclaration* mGenericConstraintsDeclaration;
|
||||
bool mIgnoreDeclaration;
|
||||
|
@ -2994,6 +2996,12 @@ public:
|
|||
|
||||
}; BF_AST_DECL(BfConstructorDeclaration, BfMethodDeclaration);
|
||||
|
||||
class BfAutoConstructorDeclaration : public BfConstructorDeclaration
|
||||
{
|
||||
public:
|
||||
BF_AST_TYPE(BfAutoConstructorDeclaration, BfConstructorDeclaration);
|
||||
}; BF_AST_DECL(BfAutoConstructorDeclaration, BfConstructorDeclaration);
|
||||
|
||||
class BfDestructorDeclaration : public BfMethodDeclaration
|
||||
{
|
||||
public:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue