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

Named arguments

This commit is contained in:
Brian Fiete 2022-06-24 18:41:54 -07:00
parent d204922403
commit 79320652e3
15 changed files with 341 additions and 37 deletions

View file

@ -1033,6 +1033,16 @@ void BfPrinter::Visit(BfExpressionStatement* exprStmt)
VisitChild(exprStmt->mTrailingSemicolon);
}
void BfPrinter::Visit(BfNamedExpression* namedExpr)
{
Visit(namedExpr->ToBase());
VisitChild(namedExpr->mNameNode);
VisitChild(namedExpr->mColonToken);
ExpectSpace();
VisitChild(namedExpr->mExpression);
}
void BfPrinter::Visit(BfAttributedExpression* attribExpr)
{
Visit(attribExpr->ToBase());