diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-04-27 00:12:26 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-04-27 17:08:02 +0800 |
commit | 35f1cf92dbc6082b675e41e184aefe3b24325918 (patch) | |
tree | d5300dd01e397c5afb8ab892181bc295fb12a3b0 /libsolidity/inlineasm | |
parent | 2c1fb46bc341d9e44074af23cd4eadd3a9f732c5 (diff) | |
download | dexon-solidity-35f1cf92dbc6082b675e41e184aefe3b24325918.tar.gz dexon-solidity-35f1cf92dbc6082b675e41e184aefe3b24325918.tar.zst dexon-solidity-35f1cf92dbc6082b675e41e184aefe3b24325918.zip |
Remove parentheses from around function return parameters
Diffstat (limited to 'libsolidity/inlineasm')
-rw-r--r-- | libsolidity/inlineasm/AsmParser.cpp | 4 | ||||
-rw-r--r-- | libsolidity/inlineasm/AsmPrinter.cpp | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/libsolidity/inlineasm/AsmParser.cpp b/libsolidity/inlineasm/AsmParser.cpp index 0fc0a34f..9513cf77 100644 --- a/libsolidity/inlineasm/AsmParser.cpp +++ b/libsolidity/inlineasm/AsmParser.cpp @@ -242,15 +242,13 @@ assembly::FunctionDefinition Parser::parseFunctionDefinition() { expectToken(Token::Sub); expectToken(Token::GreaterThan); - expectToken(Token::LParen); while (true) { funDef.returns.push_back(expectAsmIdentifier()); - if (m_scanner->currentToken() == Token::RParen) + if (m_scanner->currentToken() == Token::LBrace) break; expectToken(Token::Comma); } - expectToken(Token::RParen); } funDef.body = parseBlock(); funDef.location.end = funDef.body.location.end; diff --git a/libsolidity/inlineasm/AsmPrinter.cpp b/libsolidity/inlineasm/AsmPrinter.cpp index a70b0b78..252e91f9 100644 --- a/libsolidity/inlineasm/AsmPrinter.cpp +++ b/libsolidity/inlineasm/AsmPrinter.cpp @@ -116,7 +116,7 @@ string AsmPrinter::operator()(assembly::FunctionDefinition const& _functionDefin { string out = "function " + _functionDefinition.name + "(" + boost::algorithm::join(_functionDefinition.arguments, ", ") + ")"; if (!_functionDefinition.returns.empty()) - out += " -> (" + boost::algorithm::join(_functionDefinition.returns, ", ") + ")"; + out += " -> " + boost::algorithm::join(_functionDefinition.returns, ", "); return out + "\n" + (*this)(_functionDefinition.body); } |