aboutsummaryrefslogtreecommitdiffstats
path: root/ASTPrinter.cpp
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2015-04-28 00:31:38 +0800
committerchriseth <c@ethdev.com>2015-04-28 00:57:13 +0800
commit9aa03ddd899b3b10c298e483d976d86f064b944a (patch)
tree6be36078c03e0cd82ca8eefd446bf242fe794ca9 /ASTPrinter.cpp
parent1087d34a665ad2d3595d8a5259d69e8f3d52eebe (diff)
downloaddexon-solidity-9aa03ddd899b3b10c298e483d976d86f064b944a.tar
dexon-solidity-9aa03ddd899b3b10c298e483d976d86f064b944a.tar.gz
dexon-solidity-9aa03ddd899b3b10c298e483d976d86f064b944a.tar.bz2
dexon-solidity-9aa03ddd899b3b10c298e483d976d86f064b944a.tar.lz
dexon-solidity-9aa03ddd899b3b10c298e483d976d86f064b944a.tar.xz
dexon-solidity-9aa03ddd899b3b10c298e483d976d86f064b944a.tar.zst
dexon-solidity-9aa03ddd899b3b10c298e483d976d86f064b944a.zip
Removed visit functions for abstract AST nodes.
Diffstat (limited to 'ASTPrinter.cpp')
-rw-r--r--ASTPrinter.cpp50
1 files changed, 0 insertions, 50 deletions
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--;