mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 12:02:21 +02:00
Parse fix with semicolon following generic constraints
This commit is contained in:
parent
6b27f0f0b2
commit
f9c632cbe7
1 changed files with 8 additions and 2 deletions
|
@ -8327,8 +8327,14 @@ BfAstNode* BfReducer::CreateTopLevelObject(BfTokenNode* tokenNode, BfAttributeDi
|
|||
{
|
||||
MEMBER_SET(typeDeclaration, mGenericConstraintsDeclaration, constraints);
|
||||
}
|
||||
|
||||
nextNode = mVisitorPos.GetNext();
|
||||
tokenNode = BfNodeDynCast<BfTokenNode>(nextNode);
|
||||
}
|
||||
}
|
||||
|
||||
if (tokenNode != NULL)
|
||||
{
|
||||
if (tokenNode->GetToken() == BfToken_Semicolon)
|
||||
{
|
||||
typeDeclaration->mDefineNode = tokenNode;
|
||||
|
@ -9375,7 +9381,7 @@ BfGenericConstraintsDeclaration* BfReducer::CreateGenericConstraintsDeclaration(
|
|||
break;
|
||||
if ((token == BfToken_LBrace) || (token == BfToken_Semicolon))
|
||||
{
|
||||
//return constraintsDeclaration;
|
||||
mVisitorPos.mReadPos--;
|
||||
isDone = true;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue