1
0
Fork 0
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:
Brian Fiete 2020-10-14 11:46:33 -07:00
parent 6b27f0f0b2
commit f9c632cbe7

View file

@ -8327,8 +8327,14 @@ BfAstNode* BfReducer::CreateTopLevelObject(BfTokenNode* tokenNode, BfAttributeDi
{ {
MEMBER_SET(typeDeclaration, mGenericConstraintsDeclaration, constraints); MEMBER_SET(typeDeclaration, mGenericConstraintsDeclaration, constraints);
} }
}
nextNode = mVisitorPos.GetNext();
tokenNode = BfNodeDynCast<BfTokenNode>(nextNode);
}
}
if (tokenNode != NULL)
{
if (tokenNode->GetToken() == BfToken_Semicolon) if (tokenNode->GetToken() == BfToken_Semicolon)
{ {
typeDeclaration->mDefineNode = tokenNode; typeDeclaration->mDefineNode = tokenNode;
@ -9375,7 +9381,7 @@ BfGenericConstraintsDeclaration* BfReducer::CreateGenericConstraintsDeclaration(
break; break;
if ((token == BfToken_LBrace) || (token == BfToken_Semicolon)) if ((token == BfToken_LBrace) || (token == BfToken_Semicolon))
{ {
//return constraintsDeclaration; mVisitorPos.mReadPos--;
isDone = true; isDone = true;
break; break;
} }