1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 19:48:20 +02:00

Parsing fix for failed collection initializer expression

This commit is contained in:
Brian Fiete 2023-11-18 18:57:20 -05:00
parent 0ae87320af
commit 76c773b0c7

View file

@ -7797,7 +7797,10 @@ BfCollectionInitializerExpression * BfReducer::CreateCollectionInitializerExpres
expression = CreateExpression(head);
}
if (expression == NULL)
{
arrayInitializerExpression->mSrcEnd = head->mSrcEnd;
break;
}
auto nextNode = mVisitorPos.GetNext();
bool atEnd = nextNode == NULL;
auto tokenNode = atEnd ? NULL : ExpectTokenAfter(expression, BfToken_Comma, BfToken_RParen);