ExportDescriptorValidator

ExportDescriptorValidator

object ExportDescriptorValidator

Validator of ExportDescriptor nodes.

From the docs:


func x
  • The function C.funcs[x] must be defined in the context.
  • Then the export description is valid with external type func C.funcs[x].

table x
  • The table C.tables[x] must be defined in the context.
  • Then the export description is valid with external type table C.tables[x].

mem x
  • The memory C.mems[x] must be defined in the context.
  • Then the export description is valid with external type mem C.mems[x].

global x

  • The global C.globals\[x] must be defined in the context.
  • Then the export description is valid with external type global C.globals\[x].

Methods

visit

fun visit(node: ExportDescriptor<*>, context: Module): Module

Validates the given node, and if necessary: its children (recursively, using other ValidationVisitor instances).

Parameters

Name Description
node: ExportDescriptor<*>
context: Module

ReturnValue

Name Description
Module