aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/ast/ASTJsonConverter.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/ASTJsonConverter.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/ASTJsonConverter.cpp')
-rw-r--r--libsolidity/ast/ASTJsonConverter.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/libsolidity/ast/ASTJsonConverter.cpp b/libsolidity/ast/ASTJsonConverter.cpp
index 377fa7e6..df836afe 100644
--- a/libsolidity/ast/ASTJsonConverter.cpp
+++ b/libsolidity/ast/ASTJsonConverter.cpp
@@ -217,6 +217,12 @@ bool ASTJsonConverter::visit(ExpressionStatement const&)
return true;
}
+bool ASTJsonConverter::visit(Conditional const&)
+{
+ addJsonNode("Conditional", {}, true);
+ return true;
+}
+
bool ASTJsonConverter::visit(Assignment const& _node)
{
addJsonNode("Assignment",
@@ -397,6 +403,11 @@ void ASTJsonConverter::endVisit(ExpressionStatement const&)
goUp();
}
+void ASTJsonConverter::endVisit(Conditional const&)
+{
+ goUp();
+}
+
void ASTJsonConverter::endVisit(Assignment const&)
{
goUp();