mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-11 04:52:21 +02:00
Fixing a case of adding to error nodes
This commit is contained in:
parent
0cefe95600
commit
ed1cf60bb9
1 changed files with 1 additions and 0 deletions
|
@ -8124,6 +8124,7 @@ BfAstNode* BfReducer::CreateTopLevelObject(BfTokenNode* tokenNode, BfAttributeDi
|
||||||
return typeDeclaration;
|
return typeDeclaration;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
AddErrorNode(tokenNode, false);
|
||||||
Fail("Unexpected token", tokenNode);
|
Fail("Unexpected token", tokenNode);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue