diff options
author | chriseth <c@ethdev.com> | 2015-10-16 16:01:34 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2015-10-16 16:01:34 +0800 |
commit | 52eaa477d4bd9ad2f591148727d1ac9fd500d283 (patch) | |
tree | aa45f8f99f9b9d7bc530edeb682727449aacb78e /libsolidity/ASTPrinter.cpp | |
parent | 2ea5b2431fc360904f193f61d974acf24fff1326 (diff) | |
parent | 2920a32ae81539a10af54e275da72111b792568e (diff) | |
download | dexon-solidity-52eaa477d4bd9ad2f591148727d1ac9fd500d283.tar.gz dexon-solidity-52eaa477d4bd9ad2f591148727d1ac9fd500d283.tar.zst dexon-solidity-52eaa477d4bd9ad2f591148727d1ac9fd500d283.zip |
Merge pull request #132 from chriseth/tupleExpression
Tuple expressions and destructuring assignments
Diffstat (limited to 'libsolidity/ASTPrinter.cpp')
-rw-r--r-- | libsolidity/ASTPrinter.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libsolidity/ASTPrinter.cpp b/libsolidity/ASTPrinter.cpp index 534f7c78..cb231842 100644 --- a/libsolidity/ASTPrinter.cpp +++ b/libsolidity/ASTPrinter.cpp @@ -256,6 +256,14 @@ bool ASTPrinter::visit(Assignment const& _node) return goDeeper(); } +bool ASTPrinter::visit(TupleExpression const& _node) +{ + writeLine(string("TupleExpression")); + printType(_node); + printSourcePart(_node); + return goDeeper(); +} + bool ASTPrinter::visit(UnaryOperation const& _node) { writeLine(string("UnaryOperation (") + (_node.isPrefixOperation() ? "prefix" : "postfix") + @@ -477,6 +485,11 @@ void ASTPrinter::endVisit(Assignment const&) m_indentation--; } +void ASTPrinter::endVisit(TupleExpression const&) +{ + m_indentation--; +} + void ASTPrinter::endVisit(UnaryOperation const&) { m_indentation--; |