From 4563d4bd3c3525fd2bf26823567f3c99018482e1 Mon Sep 17 00:00:00 2001 From: Lu Guanqun Date: Tue, 22 Dec 2015 16:47:00 +0000 Subject: [cond-expr] add visitor related functions --- libsolidity/ast/ASTJsonConverter.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'libsolidity/ast/ASTJsonConverter.cpp') 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(); -- cgit