aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/ast
diff options
context:
space:
mode:
authorAlex Sinyagin <sinyagin.alexander@gmail.com>2016-08-16 22:28:28 +0800
committerAlex Sinyagin <sinyagin.alexander@gmail.com>2016-08-18 20:29:59 +0800
commit40ca2c9e977b98083efed96f031c298cf65d0893 (patch)
tree42646ca2a65f39e49b1cfba01787b3a167eb2086 /libsolidity/ast
parent9e7fc124633ae1503ab33f1842f0164d895f46d2 (diff)
downloaddexon-solidity-40ca2c9e977b98083efed96f031c298cf65d0893.tar
dexon-solidity-40ca2c9e977b98083efed96f031c298cf65d0893.tar.gz
dexon-solidity-40ca2c9e977b98083efed96f031c298cf65d0893.tar.bz2
dexon-solidity-40ca2c9e977b98083efed96f031c298cf65d0893.tar.lz
dexon-solidity-40ca2c9e977b98083efed96f031c298cf65d0893.tar.xz
dexon-solidity-40ca2c9e977b98083efed96f031c298cf65d0893.tar.zst
dexon-solidity-40ca2c9e977b98083efed96f031c298cf65d0893.zip
Add ast json converter for UsingForDirective
Diffstat (limited to 'libsolidity/ast')
-rw-r--r--libsolidity/ast/ASTJsonConverter.cpp13
-rw-r--r--libsolidity/ast/ASTJsonConverter.h2
2 files changed, 14 insertions, 1 deletions
diff --git a/libsolidity/ast/ASTJsonConverter.cpp b/libsolidity/ast/ASTJsonConverter.cpp
index 60a3fd0a..9362b86b 100644
--- a/libsolidity/ast/ASTJsonConverter.cpp
+++ b/libsolidity/ast/ASTJsonConverter.cpp
@@ -122,7 +122,13 @@ bool ASTJsonConverter::visit(ContractDefinition const& _node)
bool ASTJsonConverter::visit(InheritanceSpecifier const& _node)
{
- addJsonNode(_node, "Inheritance", { }, true);
+ addJsonNode(_node, "Inheritance", {}, true);
+ return true;
+}
+
+bool ASTJsonConverter::visit(UsingForDirective const& _node)
+{
+ addJsonNode(_node, "UsingFor", {}, true);
return true;
}
@@ -356,6 +362,11 @@ void ASTJsonConverter::endVisit(InheritanceSpecifier const&)
goUp();
}
+void ASTJsonConverter::endVisit(UsingForDirective const&)
+{
+ goUp();
+}
+
void ASTJsonConverter::endVisit(StructDefinition const&)
{
goUp();
diff --git a/libsolidity/ast/ASTJsonConverter.h b/libsolidity/ast/ASTJsonConverter.h
index fb32352d..8e25802a 100644
--- a/libsolidity/ast/ASTJsonConverter.h
+++ b/libsolidity/ast/ASTJsonConverter.h
@@ -54,6 +54,7 @@ public:
bool visit(ImportDirective const& _node) override;
bool visit(ContractDefinition const& _node) override;
bool visit(InheritanceSpecifier const& _node) override;
+ bool visit(UsingForDirective const& _node) override;
bool visit(StructDefinition const& _node) override;
bool visit(ParameterList const& _node) override;
bool visit(FunctionDefinition const& _node) override;
@@ -89,6 +90,7 @@ public:
void endVisit(ImportDirective const&) override;
void endVisit(ContractDefinition const&) override;
void endVisit(InheritanceSpecifier const&) override;
+ void endVisit(UsingForDirective const&) override;
void endVisit(StructDefinition const&) override;
void endVisit(ParameterList const&) override;
void endVisit(FunctionDefinition const&) override;