From 9aa03ddd899b3b10c298e483d976d86f064b944a Mon Sep 17 00:00:00 2001 From: chriseth Date: Mon, 27 Apr 2015 18:31:38 +0200 Subject: Removed visit functions for abstract AST nodes. --- ASTPrinter.cpp | 50 -------------------------------------------------- 1 file changed, 50 deletions(-) (limited to 'ASTPrinter.cpp') diff --git a/ASTPrinter.cpp b/ASTPrinter.cpp index d0b27b31..713059d3 100644 --- a/ASTPrinter.cpp +++ b/ASTPrinter.cpp @@ -162,13 +162,6 @@ bool ASTPrinter::visit(ArrayTypeName const& _node) return goDeeper(); } -bool ASTPrinter::visit(Statement const& _node) -{ - writeLine("Statement"); - printSourcePart(_node); - return goDeeper(); -} - bool ASTPrinter::visit(Block const& _node) { writeLine("Block"); @@ -190,13 +183,6 @@ bool ASTPrinter::visit(IfStatement const& _node) return goDeeper(); } -bool ASTPrinter::visit(BreakableStatement const& _node) -{ - writeLine("BreakableStatement"); - printSourcePart(_node); - return goDeeper(); -} - bool ASTPrinter::visit(WhileStatement const& _node) { writeLine("WhileStatement"); @@ -246,14 +232,6 @@ bool ASTPrinter::visit(ExpressionStatement const& _node) return goDeeper(); } -bool ASTPrinter::visit(Expression const& _node) -{ - writeLine("Expression"); - printType(_node); - printSourcePart(_node); - return goDeeper(); -} - bool ASTPrinter::visit(Assignment const& _node) { writeLine(string("Assignment using operator ") + Token::toString(_node.getAssignmentOperator())); @@ -311,14 +289,6 @@ bool ASTPrinter::visit(IndexAccess const& _node) return goDeeper(); } -bool ASTPrinter::visit(PrimaryExpression const& _node) -{ - writeLine("PrimaryExpression"); - printType(_node); - printSourcePart(_node); - return goDeeper(); -} - bool ASTPrinter::visit(Identifier const& _node) { writeLine(string("Identifier ") + _node.getName()); @@ -431,11 +401,6 @@ void ASTPrinter::endVisit(ArrayTypeName const&) m_indentation--; } -void ASTPrinter::endVisit(Statement const&) -{ - m_indentation--; -} - void ASTPrinter::endVisit(Block const&) { m_indentation--; @@ -451,11 +416,6 @@ void ASTPrinter::endVisit(IfStatement const&) m_indentation--; } -void ASTPrinter::endVisit(BreakableStatement const&) -{ - m_indentation--; -} - void ASTPrinter::endVisit(WhileStatement const&) { m_indentation--; @@ -491,11 +451,6 @@ void ASTPrinter::endVisit(ExpressionStatement const&) m_indentation--; } -void ASTPrinter::endVisit(Expression const&) -{ - m_indentation--; -} - void ASTPrinter::endVisit(Assignment const&) { m_indentation--; @@ -531,11 +486,6 @@ void ASTPrinter::endVisit(IndexAccess const&) m_indentation--; } -void ASTPrinter::endVisit(PrimaryExpression const&) -{ - m_indentation--; -} - void ASTPrinter::endVisit(Identifier const&) { m_indentation--; -- cgit v1.2.3