BlockValidator

BlockValidator

object BlockValidator

Validator of kwasm.ast.instruction.BlockInstruction nodes.

For specific validation requirements, see the docs for the validate extension functions on ControlInstruction.Block, ControlInstruction.Loop, and ControlInstruction.If.

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