ElementSegmentValidator
object ElementSegmentValidator
Methods
visit
fun visit(node: ElementSegment, context: Module): Module
Validates the given node, and if necessary: its children (recursively, using other ValidationVisitor instances).
Parameters
Name | Description |
---|---|
node: ElementSegment
|
|
context: Module
|
ReturnValue
Name | Description |
---|---|
Module
|
Validator of ElementSegment nodes.
From the docs:
C.tables[x]
must be defined in the context.limits elemtype
be the table typeC.tables[x]
.elemtype
must befuncref
.expr
must be valid with result type[i32]
.expr
must be constant.y_i
iny*
, the functionC.funcs[y]
must be defined in the context.