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:
parent
0ae87320af
commit
76c773b0c7
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue