throw statement implementation

This commit is contained in:
LianaHus
2015-09-16 13:25:32 +02:00
parent 9d43f2c186
commit 279a36b6f8
14 changed files with 94 additions and 1 deletions
+12
View File
@@ -221,6 +221,13 @@ bool ASTPrinter::visit(Return const& _node)
return goDeeper();
}
bool ASTPrinter::visit(Throw const& _node)
{
writeLine("Throw");
printSourcePart(_node);
return goDeeper();
}
bool ASTPrinter::visit(VariableDeclarationStatement const& _node)
{
writeLine("VariableDeclarationStatement");
@@ -444,6 +451,11 @@ void ASTPrinter::endVisit(Return const&)
m_indentation--;
}
void ASTPrinter::endVisit(Throw const&)
{
m_indentation--;
}
void ASTPrinter::endVisit(VariableDeclarationStatement const&)
{
m_indentation--;