mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
style fixes
This commit is contained in:
parent
279a36b6f8
commit
ca08fe50c6
@ -493,13 +493,13 @@ void Return::accept(ASTConstVisitor& _visitor) const
|
|||||||
|
|
||||||
void Throw::accept(ASTVisitor& _visitor)
|
void Throw::accept(ASTVisitor& _visitor)
|
||||||
{
|
{
|
||||||
if (_visitor.visit(*this))
|
_visitor.visit(*this);
|
||||||
_visitor.endVisit(*this);
|
_visitor.endVisit(*this);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Throw::accept(ASTConstVisitor& _visitor) const
|
void Throw::accept(ASTConstVisitor& _visitor) const
|
||||||
{
|
{
|
||||||
if (_visitor.visit(*this))
|
_visitor.visit(*this);
|
||||||
_visitor.endVisit(*this);
|
_visitor.endVisit(*this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -627,9 +627,9 @@ ASTPointer<Statement> Parser::parseStatement()
|
|||||||
ASTNodeFactory nodeFactory(*this);
|
ASTNodeFactory nodeFactory(*this);
|
||||||
ASTPointer<Expression> expression;
|
ASTPointer<Expression> expression;
|
||||||
if (m_scanner->next() != Token::Semicolon)
|
if (m_scanner->next() != Token::Semicolon)
|
||||||
BOOST_THROW_EXCEPTION(createParserError("Throw statement cannot have parameters."));
|
BOOST_THROW_EXCEPTION(createParserError("Expected semicolon."));
|
||||||
|
|
||||||
statement = nodeFactory.createNode<Throw>(/*expression*/);
|
statement = nodeFactory.createNode<Throw>();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case Token::Identifier:
|
case Token::Identifier:
|
||||||
|
Loading…
Reference in New Issue
Block a user