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 elemtypebe the table typeC.tables[x].elemtypemust befuncref.exprmust be valid with result type[i32].exprmust be constant.y_iiny*, the functionC.funcs[y]must be defined in the context.