diff options
Diffstat (limited to 'libsolidity')
-rw-r--r-- | libsolidity/AST.h | 2 | ||||
-rw-r--r-- | libsolidity/AST_accept.h | 4 | ||||
-rw-r--r-- | libsolidity/Parser.cpp | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/libsolidity/AST.h b/libsolidity/AST.h index db83cf59..de0ef3ef 100644 --- a/libsolidity/AST.h +++ b/libsolidity/AST.h @@ -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 {}; }; /** diff --git a/libsolidity/AST_accept.h b/libsolidity/AST_accept.h index d07c2cd0..1388466c 100644 --- a/libsolidity/AST_accept.h +++ b/libsolidity/AST_accept.h @@ -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); } diff --git a/libsolidity/Parser.cpp b/libsolidity/Parser.cpp index ac9e04c8..1ea406be 100644 --- a/libsolidity/Parser.cpp +++ b/libsolidity/Parser.cpp @@ -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: |