aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/ast/ASTPrinter.cpp
diff options
context:
space:
mode:
authorLu Guanqun <guanqun.lu@gmail.com>2015-12-23 00:47:00 +0800
committerLu Guanqun <guanqun.lu@gmail.com>2016-01-23 01:14:00 +0800
commit4563d4bd3c3525fd2bf26823567f3c99018482e1 (patch)
treeaa5300660d0fc4547735e0c1a39a1b3f0d151aa9 /libsolidity/ast/ASTPrinter.cpp
parent4fa0326813b4fc9d3c85cb9235f42cf22beead72 (diff)
downloaddexon-solidity-4563d4bd3c3525fd2bf26823567f3c99018482e1.tar.gz
dexon-solidity-4563d4bd3c3525fd2bf26823567f3c99018482e1.tar.zst
dexon-solidity-4563d4bd3c3525fd2bf26823567f3c99018482e1.zip
[cond-expr] add visitor related functions
Diffstat (limited to 'libsolidity/ast/ASTPrinter.cpp')
-rw-r--r--libsolidity/ast/ASTPrinter.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/libsolidity/ast/ASTPrinter.cpp b/libsolidity/ast/ASTPrinter.cpp
index d4f13e47..bc981f7d 100644
--- a/libsolidity/ast/ASTPrinter.cpp
+++ b/libsolidity/ast/ASTPrinter.cpp
@@ -248,6 +248,14 @@ bool ASTPrinter::visit(ExpressionStatement const& _node)
return goDeeper();
}
+bool ASTPrinter::visit(Conditional const& _node)
+{
+ writeLine("Conditional");
+ printType(_node);
+ printSourcePart(_node);
+ return goDeeper();
+}
+
bool ASTPrinter::visit(Assignment const& _node)
{
writeLine(string("Assignment using operator ") + Token::toString(_node.assignmentOperator()));
@@ -480,6 +488,11 @@ void ASTPrinter::endVisit(ExpressionStatement const&)
m_indentation--;
}
+void ASTPrinter::endVisit(Conditional const&)
+{
+ m_indentation--;
+}
+
void ASTPrinter::endVisit(Assignment const&)
{
m_indentation--;