ImportValidator

ImportValidator

object ImportValidator

Validator of Import nodes.

From the docs:

  • The import description importdesc must be valid with type externtype.
  • Then the import is valid with type externtype.

Methods

visit

fun visit(node: Import, context: Module): Module

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

Parameters

Name Description
node: Import
context: Module

ReturnValue

Name Description
Module