mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
style
This commit is contained in:
parent
ca08fe50c6
commit
1fb7488671
@ -624,12 +624,8 @@ ASTPointer<Statement> Parser::parseStatement()
|
|||||||
}
|
}
|
||||||
case Token::Throw:
|
case Token::Throw:
|
||||||
{
|
{
|
||||||
ASTNodeFactory nodeFactory(*this);
|
statement = ASTNodeFactory(*this).createNode<Throw>();
|
||||||
ASTPointer<Expression> expression;
|
m_scanner->next();
|
||||||
if (m_scanner->next() != Token::Semicolon)
|
|
||||||
BOOST_THROW_EXCEPTION(createParserError("Expected semicolon."));
|
|
||||||
|
|
||||||
statement = nodeFactory.createNode<Throw>();
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case Token::Identifier:
|
case Token::Identifier:
|
||||||
|
Loading…
Reference in New Issue
Block a user