mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Enhanced expression-body support
This commit is contained in:
parent
a94d76ac5d
commit
6af96d8f6d
5 changed files with 91 additions and 46 deletions
|
@ -2349,9 +2349,12 @@ void BfPrinter::Visit(BfPropertyMethodDeclaration* propertyMethodDeclaration)
|
|||
ExpectSpace();
|
||||
QueueVisitChild(propertyMethodDeclaration->mMutSpecifier);
|
||||
ExpectSpace();
|
||||
QueueVisitChild(propertyMethodDeclaration->mFatArrowToken);
|
||||
ExpectSpace();
|
||||
if (auto block = BfNodeDynCast<BfBlock>(propertyMethodDeclaration->mBody))
|
||||
ExpectNewLine();
|
||||
QueueVisitChild(propertyMethodDeclaration->mBody);
|
||||
QueueVisitChild(propertyMethodDeclaration->mEndSemicolon);
|
||||
}
|
||||
|
||||
void BfPrinter::Visit(BfPropertyDeclaration* propertyDeclaration)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue