PrintPlugin is an interface for plugins used for printing an ASTNode.

interface PrintPlugin<T> {
    match(ast): boolean;
    print(context, ast): Generator<string, any, unknown>;
}

Type Parameters

Methods

Methods

  • Checks if an ASTNode matches the plugin

    Parameters

    Returns boolean

    true if the ASTNode matches the plugin

  • Prints an ASTNode

    Parameters

    Returns Generator<string, any, unknown>

    printed string

    Memberof

    PrintPlugin

Generated using TypeDoc