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
@ -977,7 +977,7 @@ public:
|
||||
Throw(SourceLocation const& _location): Statement(_location) {}
|
||||
virtual void accept(ASTVisitor& _visitor) override;
|
||||
virtual void accept(ASTConstVisitor& _visitor) const override;
|
||||
virtual void checkTypeRequirements() override{};
|
||||
virtual void checkTypeRequirements() override {};
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -493,13 +493,13 @@ void Return::accept(ASTConstVisitor& _visitor) const
|
||||
|
||||
void Throw::accept(ASTVisitor& _visitor)
|
||||
{
|
||||
if (_visitor.visit(*this))
|
||||
_visitor.visit(*this);
|
||||
_visitor.endVisit(*this);
|
||||
}
|
||||
|
||||
void Throw::accept(ASTConstVisitor& _visitor) const
|
||||
{
|
||||
if (_visitor.visit(*this))
|
||||
_visitor.visit(*this);
|
||||
_visitor.endVisit(*this);
|
||||
}
|
||||
|
||||
|
@ -627,9 +627,9 @@ ASTPointer<Statement> Parser::parseStatement()
|
||||
ASTNodeFactory nodeFactory(*this);
|
||||
ASTPointer<Expression> expression;
|
||||
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;
|
||||
}
|
||||
case Token::Identifier:
|
||||
|
Loading…
Reference in New Issue
Block a user