PrintContext interface provides an interface for printing an ASTNode with a set of options.

interface PrintContext {
    EOL: string;
    directed: boolean;
    join(children, separator): Iterable<string>;
    print(ast): Iterable<string>;
    printChildren(children): Iterable<string>;
}

Properties

Methods

Properties

EOL: string
directed: boolean

Indicates if the AST should be printed in a directed graph.

Methods

  • Parameters

    • children: ASTNode[]
    • separator: string

    Returns Iterable<string>

  • A function to print an ASTNode, taking in an ASTNode as an argument. Returns a string.

    Parameters

    Returns Iterable<string>

  • Parameters

    Returns Iterable<string>

Generated using TypeDoc