diff options
author | Kwang Yul Seo <kseo@kodebox.io> | 2017-11-13 23:15:56 +0800 |
---|---|---|
committer | Kwang Yul Seo <kseo@kodebox.io> | 2017-11-16 00:36:57 +0800 |
commit | 02db1ad5849cc98c3f8f5af0de3a7f62c080026e (patch) | |
tree | 450b30a20d87c1d4787d7699dae0f712e60d8d8b /libsolidity/ast/ASTPrinter.cpp | |
parent | ed3ce43d6d373622822f1d3097c650ef12714a18 (diff) | |
download | dexon-solidity-02db1ad5849cc98c3f8f5af0de3a7f62c080026e.tar.gz dexon-solidity-02db1ad5849cc98c3f8f5af0de3a7f62c080026e.tar.zst dexon-solidity-02db1ad5849cc98c3f8f5af0de3a7f62c080026e.zip |
Print using for directive in ASTPrinter
Diffstat (limited to 'libsolidity/ast/ASTPrinter.cpp')
-rw-r--r-- | libsolidity/ast/ASTPrinter.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libsolidity/ast/ASTPrinter.cpp b/libsolidity/ast/ASTPrinter.cpp index 81e6cc44..23c3cbe1 100644 --- a/libsolidity/ast/ASTPrinter.cpp +++ b/libsolidity/ast/ASTPrinter.cpp @@ -78,6 +78,13 @@ bool ASTPrinter::visit(InheritanceSpecifier const& _node) return goDeeper(); } +bool ASTPrinter::visit(UsingForDirective const& _node) +{ + writeLine("UsingForDirective"); + printSourcePart(_node); + return goDeeper(); +} + bool ASTPrinter::visit(StructDefinition const& _node) { writeLine("StructDefinition \"" + _node.name() + "\""); @@ -385,6 +392,11 @@ void ASTPrinter::endVisit(InheritanceSpecifier const&) m_indentation--; } +void ASTPrinter::endVisit(UsingForDirective const&) +{ + m_indentation--; +} + void ASTPrinter::endVisit(StructDefinition const&) { m_indentation--; |