ImportDescriptorValidator
object ImportDescriptorValidator
Methods
visit
fun visit(node: ImportDescriptor, context: Module): Module
Validates the given node, and if necessary: its children (recursively, using other ValidationVisitor instances).
Parameters
Name | Description |
---|---|
node: ImportDescriptor
|
|
context: Module
|
ReturnValue
Name | Description |
---|---|
Module
|
Validator of ImportDescriptor nodes.
From the docs:
C.types[x]
must be defined in the context.[t*^1] => [t*^2]
be the function typeC.types[x]
.func [t*^1] => [t*^2]
.tabletype
must be valid.table tabletype
.memtype
must be valid.mem memtype
.globaltype
must be valid.global globaltype
.