1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Enhanced expression-body support

This commit is contained in:
Brian Fiete 2020-05-08 11:11:01 -07:00
parent a94d76ac5d
commit 6af96d8f6d
5 changed files with 91 additions and 46 deletions

View file

@ -2574,7 +2574,7 @@ public:
BfTokenNode* mCloseParen;
BfSizedArray<ASTREF(BfIdentifierNode*)> mParams;
BfSizedArray<ASTREF(BfTokenNode*)> mCommas;
BfTokenNode* mFatArrowToken;
BfTokenNode* mFatArrowToken;
BfAstNode* mBody; // Either expression or block
BfFieldDtorDeclaration* mDtor;
}; BF_AST_DECL(BfLambdaBindExpression, BfExpression);
@ -2827,7 +2827,7 @@ public:
ASTREF(BfGenericConstraintsDeclaration*) mGenericConstraintsDeclaration;
ASTREF(BfAstNode*) mEndSemicolon;
ASTREF(BfTokenNode*) mFatArrowToken;
ASTREF(BfAstNode*) mBody; // Either expression or block
ASTREF(BfAstNode*) mBody; // Either expression or block
//BfMethodDef* mMethodDef;
@ -2916,7 +2916,9 @@ public:
BfTokenNode* mProtectionSpecifier;
BfTokenNode* mMutSpecifier;
BfIdentifierNode* mNameNode;
BfTokenNode* mFatArrowToken;
BfAstNode* mBody;
BfAstNode* mEndSemicolon;
}; BF_AST_DECL(BfPropertyMethodDeclaration, BfAstNode);
class BfPropertyBodyExpression : public BfAstNode