From 3c412ed2f63a58b27eeb00fe584b9378311b099f Mon Sep 17 00:00:00 2001 From: chriseth Date: Fri, 19 Aug 2016 19:57:21 +0200 Subject: Version pragma. --- libsolidity/ast/ASTPrinter.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'libsolidity/ast/ASTPrinter.cpp') diff --git a/libsolidity/ast/ASTPrinter.cpp b/libsolidity/ast/ASTPrinter.cpp index 9ed9c6d5..a9de457a 100644 --- a/libsolidity/ast/ASTPrinter.cpp +++ b/libsolidity/ast/ASTPrinter.cpp @@ -47,6 +47,13 @@ void ASTPrinter::print(ostream& _stream) } +bool ASTPrinter::visit(PragmaDirective const& _node) +{ + writeLine("PragmaDirective"); + printSourcePart(_node); + return goDeeper(); +} + bool ASTPrinter::visit(ImportDirective const& _node) { writeLine("ImportDirective \"" + _node.path() + "\""); @@ -355,6 +362,11 @@ bool ASTPrinter::visit(Literal const& _node) return goDeeper(); } +void ASTPrinter::endVisit(PragmaDirective const&) +{ + m_indentation--; +} + void ASTPrinter::endVisit(ImportDirective const&) { m_indentation--; -- cgit