mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Introduce emit statement.
This commit is contained in:
1 parent
8fc9535d43
commit
388718b59f
17 files changed
+252
-3
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user