diff options
author | LianaHus <liana@ethdev.com> | 2015-09-16 19:44:07 +0800 |
---|---|---|
committer | LianaHus <liana@ethdev.com> | 2015-09-16 19:44:07 +0800 |
commit | 1fb74886719806367facb05781d00527a9dd844f (patch) | |
tree | dd41f26fc1eaa4c2174cbaca4d9fe31740cdc1c4 | |
parent | ca08fe50c6aefb9e34f2843c36512750900d86ab (diff) | |
download | dexon-solidity-1fb74886719806367facb05781d00527a9dd844f.tar.gz dexon-solidity-1fb74886719806367facb05781d00527a9dd844f.tar.zst dexon-solidity-1fb74886719806367facb05781d00527a9dd844f.zip |
style
-rw-r--r-- | libsolidity/Parser.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/libsolidity/Parser.cpp b/libsolidity/Parser.cpp index 1ea406be..3fbe4d68 100644 --- a/libsolidity/Parser.cpp +++ b/libsolidity/Parser.cpp @@ -624,12 +624,8 @@ ASTPointer<Statement> Parser::parseStatement() } case Token::Throw: { - ASTNodeFactory nodeFactory(*this); - ASTPointer<Expression> expression; - if (m_scanner->next() != Token::Semicolon) - BOOST_THROW_EXCEPTION(createParserError("Expected semicolon.")); - - statement = nodeFactory.createNode<Throw>(); + statement = ASTNodeFactory(*this).createNode<Throw>(); + m_scanner->next(); break; } case Token::Identifier: |