mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-14 14:24:10 +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();
|
token = tokenNode->GetToken();
|
||||||
if ((tokenNode == NULL) ||
|
if ((tokenNode == NULL) ||
|
||||||
((token != BfToken_Case) && (token != BfToken_When) && (token != BfToken_Default)))
|
((token != BfToken_Case) && (token != BfToken_When) && (token != BfToken_Default)))
|
||||||
{
|
{
|
||||||
Fail("Expected 'case'", child);
|
Fail("Expected 'case'", child);
|
||||||
return switchStatement;
|
AddErrorNode(child);
|
||||||
|
isDone = !mVisitorPos.MoveNext();
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
//TODO: This error was getting annoying... Put back?
|
//TODO: This error was getting annoying... Put back?
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue