interface LangiumTypirValidator {
    checkTypingProblemsWithTypir(
        node: AstNode,
        accept: ValidationAcceptor,
    ): void;
    checkTypingProblemsWithTypirAfterDocument(
        rootNode: AstNode,
        accept: ValidationAcceptor,
    ): void;
    checkTypingProblemsWithTypirBeforeDocument(
        rootNode: AstNode,
        accept: ValidationAcceptor,
    ): void;
}

Implemented by

Methods

  • Executes all checks, which are directly derived from the current Typir configuration, i.e. checks that arguments fit to parameters for function calls (including operands for operators).

    Parameters

    • node: AstNode

      the current AST node to check regarding typing issues

    • accept: ValidationAcceptor

      receives the found validation hints

    Returns void

  • Will be called once after finishing the validation of a LangiumDocument.

    Parameters

    • rootNode: AstNode

      the root node of the current document

    • accept: ValidationAcceptor

      receives the found validation hints

    Returns void

  • Will be called once before starting the validation of a LangiumDocument.

    Parameters

    • rootNode: AstNode

      the root node of the current document

    • accept: ValidationAcceptor

      receives the found validation hints

    Returns void