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
+7
View File
@@ -606,6 +606,13 @@ bool Compiler::visit(Return const& _return)
return false;
}
bool Compiler::visit(Throw const& _throw)
{
CompilerContext::LocationSetter locationSetter(m_context, _throw);
m_context.appendJumpTo(m_context.errorTag());
return false;
}
bool Compiler::visit(VariableDeclarationStatement const& _variableDeclarationStatement)
{
StackHeightChecker checker(m_context);