1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-14 22:34:09 +02:00

Fixed mBaseClassCommas printing

This commit is contained in:
Brian Fiete 2024-01-24 06:16:42 -05:00
parent 7f0fb7e737
commit f7dbe88169

View file

@ -3035,10 +3035,11 @@ void BfPrinter::Visit(BfTypeDeclaration* typeDeclaration)
ExpectSpace(); ExpectSpace();
QueueVisitChild(typeDeclaration->mBaseClasses[i]); QueueVisitChild(typeDeclaration->mBaseClasses[i]);
if (nextCommaIdx >= 0) if (nextCommaIdx >= 0)
{
QueueVisitChild(typeDeclaration->mBaseClassCommas.GetSafe(nextCommaIdx)); QueueVisitChild(typeDeclaration->mBaseClassCommas.GetSafe(nextCommaIdx));
} nextCommaIdx++;
} }
if (nextCommaIdx >= 0)
QueueVisitChild(typeDeclaration->mBaseClassCommas.GetSafe(nextCommaIdx));
ExpectSpace(); ExpectSpace();
} }
QueueVisitChild(typeDeclaration->mGenericConstraintsDeclaration); QueueVisitChild(typeDeclaration->mGenericConstraintsDeclaration);