wake.ir.statements.emit_statement
module
#
EmitStatement
class
#
Bases: StatementAbc
Example
emit Transfer(msg.sender, to, amount)
in the following code:
Source code in wake/ir/statements/emit_statement.py
children: Iterator[ExpressionAbc]
property
#
Yields:
Type | Description |
---|---|
ExpressionAbc
|
Direct children of this node. |
event_call: FunctionCall
property
#
Example
in the following emit statement:Returns:
Type | Description |
---|---|
FunctionCall
|
Expression representing the event call. |
parent: Union[Block, DoWhileStatement, ForStatement, IfStatement, UncheckedBlock, WhileStatement]
property
#
Returns:
Type | Description |
---|---|
Union[Block, DoWhileStatement, ForStatement, IfStatement, UncheckedBlock, WhileStatement]
|
Parent IR node. |