diff options
author | chriseth <chris@ethereum.org> | 2017-12-01 21:10:49 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2017-12-01 23:18:01 +0800 |
commit | 43bb915454e210ed7c201eb58b33c7ffe8dfbdb1 (patch) | |
tree | 7c7af1babeaef919afce5be106470061fcd0944b /libsolidity/inlineasm/AsmPrinter.cpp | |
parent | d0af0c14841648365ad05ecc626e672a16df5b5c (diff) | |
download | dexon-solidity-43bb915454e210ed7c201eb58b33c7ffe8dfbdb1.tar.gz dexon-solidity-43bb915454e210ed7c201eb58b33c7ffe8dfbdb1.tar.zst dexon-solidity-43bb915454e210ed7c201eb58b33c7ffe8dfbdb1.zip |
Rename arguments to paramaters and returns to returnVariables.
Diffstat (limited to 'libsolidity/inlineasm/AsmPrinter.cpp')
-rw-r--r-- | libsolidity/inlineasm/AsmPrinter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libsolidity/inlineasm/AsmPrinter.cpp b/libsolidity/inlineasm/AsmPrinter.cpp index 0f183244..804fb1d5 100644 --- a/libsolidity/inlineasm/AsmPrinter.cpp +++ b/libsolidity/inlineasm/AsmPrinter.cpp @@ -144,17 +144,17 @@ string AsmPrinter::operator()(assembly::FunctionDefinition const& _functionDefin { string out = "function " + _functionDefinition.name + "("; out += boost::algorithm::join( - _functionDefinition.arguments | boost::adaptors::transformed( + _functionDefinition.parameters | boost::adaptors::transformed( [this](TypedName argument) { return argument.name + appendTypeName(argument.type); } ), ", " ); out += ")"; - if (!_functionDefinition.returns.empty()) + if (!_functionDefinition.returnVariables.empty()) { out += " -> "; out += boost::algorithm::join( - _functionDefinition.returns | boost::adaptors::transformed( + _functionDefinition.returnVariables | boost::adaptors::transformed( [this](TypedName argument) { return argument.name + appendTypeName(argument.type); } ), ", " |