Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface TransformationResult<T>

Type parameters

Hierarchy

  • TransformationResult

Index

Properties

Optional diagnostics

diagnostics: DiagnosticWithLocation[]

Gets diagnostics for the transformation.

transformed

transformed: T[]

Gets the transformed source files.

Methods

dispose

  • dispose(): void
  • Clean up EmitNode entries on any parse-tree nodes.

    Returns void

emitNodeWithNotification

  • Emits a node with possible notification.

    Parameters

    • hint: EmitHint

      A hint as to the intended usage of the node.

    • node: Node

      The node to emit.

    • emitCallback: (hint: EmitHint, node: Node) => void

      A callback used to emit the node.

    Returns void

Optional isEmitNotificationEnabled

  • isEmitNotificationEnabled(node: Node): boolean
  • Indicates if a given node needs an emit notification

    Parameters

    • node: Node

      The node to emit.

    Returns boolean

substituteNode

  • Gets a substitute for a node, if one is available; otherwise, returns the original node.

    Parameters

    • hint: EmitHint

      A hint as to the intended usage of the node.

    • node: Node

      The node to substitute.

    Returns Node

Generated using TypeDoc