aboutsummaryrefslogtreecommitdiffstats
path: root/ASTPrinter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ASTPrinter.cpp')
-rw-r--r--ASTPrinter.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/ASTPrinter.cpp b/ASTPrinter.cpp
index 970822a9..916fca1e 100644
--- a/ASTPrinter.cpp
+++ b/ASTPrinter.cpp
@@ -150,6 +150,13 @@ bool ASTPrinter::visit(WhileStatement const& _node)
return goDeeper();
}
+bool ASTPrinter::visit(ForStatement const& _node)
+{
+ writeLine("ForStatement");
+ printSourcePart(_node);
+ return goDeeper();
+}
+
bool ASTPrinter::visit(Continue const& _node)
{
writeLine("Continue");
@@ -360,6 +367,11 @@ void ASTPrinter::endVisit(WhileStatement const&)
m_indentation--;
}
+void ASTPrinter::endVisit(ForStatement const&)
+{
+ m_indentation--;
+}
+
void ASTPrinter::endVisit(Continue const&)
{
m_indentation--;