mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Remove two other fall-through cases in Parser
This commit is contained in:
parent
ef8355da7f
commit
f2317670fa
@ -903,11 +903,13 @@ ASTPointer<Statement> Parser::parseStatement()
|
||||
{
|
||||
statement = ASTNodeFactory(*this).createNode<PlaceholderStatement>(docString);
|
||||
m_scanner->next();
|
||||
break;
|
||||
}
|
||||
// fall-through
|
||||
else
|
||||
statement = parseSimpleStatement(docString);
|
||||
break;
|
||||
default:
|
||||
statement = parseSimpleStatement(docString);
|
||||
break;
|
||||
}
|
||||
expectToken(Token::Semicolon);
|
||||
return statement;
|
||||
|
@ -435,7 +435,7 @@ void Scanner::scanToken()
|
||||
m_nextToken.location.start = sourcePos();
|
||||
switch (m_char)
|
||||
{
|
||||
case '\n': // fall-through
|
||||
case '\n':
|
||||
case ' ':
|
||||
case '\t':
|
||||
token = selectToken(Token::Whitespace);
|
||||
|
Loading…
Reference in New Issue
Block a user