mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
throw statement implementation
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user