diff options
author | LianaHus <liana@ethdev.com> | 2015-09-16 19:24:58 +0800 |
---|---|---|
committer | LianaHus <liana@ethdev.com> | 2015-09-16 19:25:32 +0800 |
commit | ca08fe50c6aefb9e34f2843c36512750900d86ab (patch) | |
tree | 1d094f8e8d4bf3a58a4440afd0def733c0c90dea /libsolidity | |
parent | 279a36b6f8249df48b92574437f57742897841a5 (diff) | |
download | dexon-solidity-ca08fe50c6aefb9e34f2843c36512750900d86ab.tar dexon-solidity-ca08fe50c6aefb9e34f2843c36512750900d86ab.tar.gz dexon-solidity-ca08fe50c6aefb9e34f2843c36512750900d86ab.tar.bz2 dexon-solidity-ca08fe50c6aefb9e34f2843c36512750900d86ab.tar.lz dexon-solidity-ca08fe50c6aefb9e34f2843c36512750900d86ab.tar.xz dexon-solidity-ca08fe50c6aefb9e34f2843c36512750900d86ab.tar.zst dexon-solidity-ca08fe50c6aefb9e34f2843c36512750900d86ab.zip |
style fixes
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: |