From 5061eb2b2b622ae6d1eb743962e53e6ceaf74798 Mon Sep 17 00:00:00 2001 From: Alex Sinyagin Date: Thu, 18 Aug 2016 12:51:17 +0000 Subject: Move creation of the root element of JSON AST to the SourceUnit visitor --- libsolidity/ast/ASTJsonConverter.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libsolidity/ast/ASTJsonConverter.h') diff --git a/libsolidity/ast/ASTJsonConverter.h b/libsolidity/ast/ASTJsonConverter.h index 4f7e9e77..192c4c4f 100644 --- a/libsolidity/ast/ASTJsonConverter.h +++ b/libsolidity/ast/ASTJsonConverter.h @@ -51,6 +51,7 @@ public: void print(std::ostream& _stream); Json::Value const& json(); + bool visit(SourceUnit const& _node) override; bool visit(ImportDirective const& _node) override; bool visit(ContractDefinition const& _node) override; bool visit(InheritanceSpecifier const& _node) override; @@ -94,6 +95,7 @@ public: bool visit(ElementaryTypeNameExpression const& _node) override; bool visit(Literal const& _node) override; + void endVisit(SourceUnit const&) override; void endVisit(ImportDirective const&) override; void endVisit(ContractDefinition const&) override; void endVisit(InheritanceSpecifier const&) override; -- cgit v1.2.3