aboutsummaryrefslogtreecommitdiffstats
path: root/ASTJsonConverter.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 /ASTJsonConverter.cpp
parent1087d34a665ad2d3595d8a5259d69e8f3d52eebe (diff)
downloaddexon-solidity-9aa03ddd899b3b10c298e483d976d86f064b944a.tar.gz
dexon-solidity-9aa03ddd899b3b10c298e483d976d86f064b944a.tar.zst
dexon-solidity-9aa03ddd899b3b10c298e483d976d86f064b944a.zip
Removed visit functions for abstract AST nodes.
Diffstat (limited to 'ASTJsonConverter.cpp')
-rw-r--r--ASTJsonConverter.cpp45
1 files changed, 0 insertions, 45 deletions
diff --git a/ASTJsonConverter.cpp b/ASTJsonConverter.cpp
index be89de92..122b1c0d 100644
--- a/ASTJsonConverter.cpp
+++ b/ASTJsonConverter.cpp
@@ -151,12 +151,6 @@ bool ASTJsonConverter::visit(Mapping const&)
return true;
}
-bool ASTJsonConverter::visit(Statement const&)
-{
- addJsonNode("Statement", {}, true);
- return true;
-}
-
bool ASTJsonConverter::visit(Block const&)
{
addJsonNode("Block", {}, true);
@@ -169,11 +163,6 @@ bool ASTJsonConverter::visit(IfStatement const&)
return true;
}
-bool ASTJsonConverter::visit(BreakableStatement const&)
-{
- return true;
-}
-
bool ASTJsonConverter::visit(WhileStatement const&)
{
addJsonNode("WhileStatement", {}, true);
@@ -216,17 +205,6 @@ bool ASTJsonConverter::visit(ExpressionStatement const&)
return true;
}
-bool ASTJsonConverter::visit(Expression const& _node)
-{
- addJsonNode(
- "Expression",
- { make_pair("type", getType(_node)),
- make_pair("lvalue", boost::lexical_cast<std::string>(_node.isLValue())) },
- true
- );
- return true;
-}
-
bool ASTJsonConverter::visit(Assignment const& _node)
{
addJsonNode("Assignment",
@@ -285,11 +263,6 @@ bool ASTJsonConverter::visit(IndexAccess const& _node)
return true;
}
-bool ASTJsonConverter::visit(PrimaryExpression const&)
-{
- return true;
-}
-
bool ASTJsonConverter::visit(Identifier const& _node)
{
addJsonNode("Identifier",
@@ -358,11 +331,6 @@ void ASTJsonConverter::endVisit(Mapping const&)
{
}
-void ASTJsonConverter::endVisit(Statement const&)
-{
- goUp();
-}
-
void ASTJsonConverter::endVisit(Block const&)
{
goUp();
@@ -373,10 +341,6 @@ void ASTJsonConverter::endVisit(IfStatement const&)
goUp();
}
-void ASTJsonConverter::endVisit(BreakableStatement const&)
-{
-}
-
void ASTJsonConverter::endVisit(WhileStatement const&)
{
goUp();
@@ -410,11 +374,6 @@ void ASTJsonConverter::endVisit(ExpressionStatement const&)
goUp();
}
-void ASTJsonConverter::endVisit(Expression const&)
-{
- goUp();
-}
-
void ASTJsonConverter::endVisit(Assignment const&)
{
goUp();
@@ -450,10 +409,6 @@ void ASTJsonConverter::endVisit(IndexAccess const&)
goUp();
}
-void ASTJsonConverter::endVisit(PrimaryExpression const&)
-{
-}
-
void ASTJsonConverter::endVisit(Identifier const&)
{
}