Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Printer

Hierarchy

  • Printer

Index

Methods

printBundle

  • printBundle(bundle: Bundle): string
  • Prints a bundle of source files as-is, without any emit transformations.

    Parameters

    Returns string

printFile

  • Prints a source file as-is, without any emit transformations.

    Parameters

    Returns string

printList

  • Prints a list of nodes using the given format flags

    Type parameters

    Parameters

    Returns string

printNode

  • Print a node and its subtree as-is, without any emit transformations.

    Parameters

    • hint: EmitHint

      A value indicating the purpose of a node. This is primarily used to distinguish between an Identifier used in an expression position, versus an Identifier used as an IdentifierName as part of a declaration. For most nodes you should just pass Unspecified.

    • node: Node

      The node to print. The node and its subtree are printed as-is, without any emit transformations.

    • sourceFile: SourceFile

      A source file that provides context for the node. The source text of the file is used to emit the original source content for literals and identifiers, while the identifiers of the source file are used when generating unique names to avoid collisions.

    Returns string

Generated using TypeDoc