PlainValidator
object PlainValidator
Methods
visit
fun visit(node: ControlInstruction, context: FunctionBody): FunctionBody
Validates the given node, and if necessary: its children (recursively, using other ValidationVisitor instances).
Parameters
| Name | Description |
|---|---|
node: ControlInstruction
|
|
context: FunctionBody
|
ReturnValue
| Name | Description |
|---|---|
FunctionBody
|
Validator of "plain" (non-kwasm.ast.instruction.BlockInstruction) ControlInstruction nodes.
From the docs:
[] => [].[t*1] => [t*2], for any sequences of value typest*1andt*2.For the other types, see the
validateextension functions on ControlInstruction.Break, ControlInstruction.BreakIf, ControlInstruction.BreakTable, ControlInstruction.Return, ControlInstruction.Call, and ControlInstruction.CallIndirect.