mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +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);
|
expression = CreateExpression(head);
|
||||||
}
|
}
|
||||||
if (expression == NULL)
|
if (expression == NULL)
|
||||||
|
{
|
||||||
|
arrayInitializerExpression->mSrcEnd = head->mSrcEnd;
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
auto nextNode = mVisitorPos.GetNext();
|
auto nextNode = mVisitorPos.GetNext();
|
||||||
bool atEnd = nextNode == NULL;
|
bool atEnd = nextNode == NULL;
|
||||||
auto tokenNode = atEnd ? NULL : ExpectTokenAfter(expression, BfToken_Comma, BfToken_RParen);
|
auto tokenNode = atEnd ? NULL : ExpectTokenAfter(expression, BfToken_Comma, BfToken_RParen);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue