diff options
author | chriseth <chris@ethereum.org> | 2018-02-23 05:42:04 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-23 05:42:04 +0800 |
commit | 2b62c201be166222f05acfa8422b1968f2cf924a (patch) | |
tree | 501613fa210a9c0f9e74f1f277ccb6a117d5c639 /libsolidity/codegen/ContractCompiler.cpp | |
parent | 97d1c70491c027051feac065c827b223ce6acf11 (diff) | |
parent | b5a3b6a4293537c843e8387ffd0b03253160dc0a (diff) | |
download | dexon-solidity-2b62c201be166222f05acfa8422b1968f2cf924a.tar dexon-solidity-2b62c201be166222f05acfa8422b1968f2cf924a.tar.gz dexon-solidity-2b62c201be166222f05acfa8422b1968f2cf924a.tar.bz2 dexon-solidity-2b62c201be166222f05acfa8422b1968f2cf924a.tar.lz dexon-solidity-2b62c201be166222f05acfa8422b1968f2cf924a.tar.xz dexon-solidity-2b62c201be166222f05acfa8422b1968f2cf924a.tar.zst dexon-solidity-2b62c201be166222f05acfa8422b1968f2cf924a.zip |
Merge pull request #3538 from ethereum/emitEvents
emit pseudo-keyword for events.
Diffstat (limited to 'libsolidity/codegen/ContractCompiler.cpp')
-rw-r--r-- | libsolidity/codegen/ContractCompiler.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libsolidity/codegen/ContractCompiler.cpp b/libsolidity/codegen/ContractCompiler.cpp index f463db94..ebb718a5 100644 --- a/libsolidity/codegen/ContractCompiler.cpp +++ b/libsolidity/codegen/ContractCompiler.cpp @@ -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); |