1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-07-04 23:36:00 +02:00

Added label support to 'fallthrough'

This commit is contained in:
Brian Fiete 2023-12-16 07:38:27 -05:00
parent 3f7fc178e5
commit 85273962be
5 changed files with 49 additions and 5 deletions

View file

@ -2275,7 +2275,11 @@ void BfPrinter::Visit(BfFallthroughStatement* fallthroughStmt)
Visit(fallthroughStmt->ToBase());
VisitChild(fallthroughStmt->mFallthroughToken);
if (fallthroughStmt->mLabel != NULL)
{
ExpectSpace();
VisitChild(fallthroughStmt->mLabel);
}
VisitChild(fallthroughStmt->mTrailingSemicolon);
}