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

Fixed raw array alloc reformatting

This commit is contained in:
Brian Fiete 2020-05-28 08:47:09 -07:00
parent 4a858dfe4a
commit 95ef992ec4

View file

@ -1588,6 +1588,12 @@ void BfPrinter::Visit(BfObjectCreateExpression* newExpr)
VisitChild(newExpr->mTypeRef);
if (newExpr->mStarToken != NULL)
{
VisitChild(newExpr->mStarToken);
ExpectSpace();
}
VisitChild(newExpr->mOpenToken);
for (int i = 0; i < (int)newExpr->mArguments.size(); i++)
{
@ -1598,13 +1604,7 @@ void BfPrinter::Visit(BfObjectCreateExpression* newExpr)
}
VisitChild(newExpr->mArguments[i]);
}
VisitChild(newExpr->mCloseToken);
if (newExpr->mStarToken != NULL)
{
VisitChild(newExpr->mStarToken);
ExpectSpace();
}
VisitChild(newExpr->mCloseToken);
}
void BfPrinter::Visit(BfBoxExpression* boxExpr)