Introduce emit statement.

This commit is contained in:
chriseth committed 2018-02-22 15:17:30 +01:00
1 parent 8fc9535d43
commit 388718b59f
17 files changed
+252 -3

No files matched your search

+9
View File
@@ -903,6 +903,15 @@ bool ContractCompiler::visit(Throw const& _throw)
return false;
}
bool ContractCompiler::visit(EmitStatement const& _emit)
{
CompilerContext::LocationSetter locationSetter(m_context, _emit);
StackHeightChecker checker(m_context);
compileExpression(_emit.eventCall());
checker.check();
return false;
}
bool ContractCompiler::visit(VariableDeclarationStatement const& _variableDeclarationStatement)
{
StackHeightChecker checker(m_context);