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

Support for expression-bodied properties with mut

This commit is contained in:
Brian Fiete 2022-01-03 14:41:12 -05:00
parent 60b6437f69
commit c0fe1d1c1b
7 changed files with 47 additions and 11 deletions

View file

@ -2584,6 +2584,13 @@ void BfPrinter::Visit(BfPropertyMethodDeclaration* propertyMethodDeclaration)
QueueVisitChild(propertyMethodDeclaration->mEndSemicolon);
}
void BfPrinter::Visit(BfPropertyBodyExpression* propertyBodyExpression)
{
VisitChild(propertyBodyExpression->mMutSpecifier);
ExpectSpace();
VisitChild(propertyBodyExpression->mFatTokenArrow);
}
void BfPrinter::Visit(BfPropertyDeclaration* propertyDeclaration)
{
auto indexerDeclaration = BfNodeDynCast<BfIndexerDeclaration>(propertyDeclaration);