ControlInstruction
sealed class ControlInstruction
Extensions
validate
fun Instruction.validate(context: FunctionBody): FunctionBody
Validates the Instruction.
Receiver
Name | Description |
---|---|
Instruction
|
Parameters
Name | Description |
---|---|
context: FunctionBody
|
ReturnValue
Name | Description |
---|---|
FunctionBody
|
Base class for all control Instruction implementations.
From the docs:
Structured control instructions can bind an optional symbolic label identifier. The same label identifier may optionally be repeated after the corresponding
end
andelse
pseudo instructions, to indicate the matching delimiters.All other control instruction are represented verbatim.
Note The side condition stating that the identifier context
I′
must be empty in the rule forcall_indirect
enforces that no identifier can be bound in anyparam
declaration appearing in the type annotation.