mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Fixed reformat removing errors in switch block
This commit is contained in:
parent
c337bee05c
commit
0d05b81a69
1 changed files with 4 additions and 2 deletions
|
@ -3304,9 +3304,11 @@ BfSwitchStatement* BfReducer::CreateSwitchStatement(BfTokenNode* tokenNode)
|
|||
token = tokenNode->GetToken();
|
||||
if ((tokenNode == NULL) ||
|
||||
((token != BfToken_Case) && (token != BfToken_When) && (token != BfToken_Default)))
|
||||
{
|
||||
{
|
||||
Fail("Expected 'case'", child);
|
||||
return switchStatement;
|
||||
AddErrorNode(child);
|
||||
isDone = !mVisitorPos.MoveNext();
|
||||
continue;
|
||||
}
|
||||
|
||||
//TODO: This error was getting annoying... Put back?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue