aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/ast/ASTJsonConverter.h
diff options
context:
space:
mode:
authorAlex Sinyagin <sinyagin.alexander@gmail.com>2016-08-18 20:51:17 +0800
committerAlex Sinyagin <sinyagin.alexander@gmail.com>2016-08-18 20:51:17 +0800
commit5061eb2b2b622ae6d1eb743962e53e6ceaf74798 (patch)
tree0f5276d9b543f34f5c706d807918c3d5960952bb /libsolidity/ast/ASTJsonConverter.h
parent406f3a4b5d3827f09e5f1035b79627dcc0e907d9 (diff)
downloaddexon-solidity-5061eb2b2b622ae6d1eb743962e53e6ceaf74798.tar.gz
dexon-solidity-5061eb2b2b622ae6d1eb743962e53e6ceaf74798.tar.zst
dexon-solidity-5061eb2b2b622ae6d1eb743962e53e6ceaf74798.zip
Move creation of the root element of JSON AST to the SourceUnit visitor
Diffstat (limited to 'libsolidity/ast/ASTJsonConverter.h')
-rw-r--r--libsolidity/ast/ASTJsonConverter.h2
1 files changed, 2 insertions, 0 deletions
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;