diff options
author | Federico Bond <federicobond@gmail.com> | 2017-11-09 11:02:39 +0800 |
---|---|---|
committer | Federico Bond <federicobond@gmail.com> | 2017-11-23 10:08:12 +0800 |
commit | 14fd647b852146cd885426d04bffffbd1b7c08a0 (patch) | |
tree | 70ed23ccdcd5c0d29248f8e6292fa138ab05cdce /libsolidity | |
parent | dc154b4e5661945ca9c98720e097e84729a528be (diff) | |
download | dexon-solidity-14fd647b852146cd885426d04bffffbd1b7c08a0.tar.gz dexon-solidity-14fd647b852146cd885426d04bffffbd1b7c08a0.tar.zst dexon-solidity-14fd647b852146cd885426d04bffffbd1b7c08a0.zip |
Fix event parsing. Refs #3175
Diffstat (limited to 'libsolidity')
-rw-r--r-- | libsolidity/parsing/Parser.cpp | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/libsolidity/parsing/Parser.cpp b/libsolidity/parsing/Parser.cpp index 821e81d2..05b877b5 100644 --- a/libsolidity/parsing/Parser.cpp +++ b/libsolidity/parsing/Parser.cpp @@ -644,15 +644,11 @@ ASTPointer<EventDefinition> Parser::parseEventDefinition() expectToken(Token::Event); ASTPointer<ASTString> name(expectIdentifierToken()); - ASTPointer<ParameterList> parameters; - if (m_scanner->currentToken() == Token::LParen) - { - VarDeclParserOptions options; - options.allowIndexed = true; - parameters = parseParameterList(options); - } - else - parameters = createEmptyParameterList(); + + VarDeclParserOptions options; + options.allowIndexed = true; + ASTPointer<ParameterList> parameters = parseParameterList(options); + bool anonymous = false; if (m_scanner->currentToken() == Token::Anonymous) { |