Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface TransformationContext

Hierarchy

Index

Properties

Readonly factory

factory: NodeFactory

Methods

enableEmitNotification

  • Enables before/after emit notifications in the pretty printer for the provided SyntaxKind.

    Parameters

    Returns void

enableSubstitution

  • Enables expression substitutions in the pretty printer for the provided SyntaxKind.

    Parameters

    Returns void

endLexicalEnvironment

getCompilerOptions

hoistFunctionDeclaration

hoistVariableDeclaration

  • hoistVariableDeclaration(node: Identifier): void

isEmitNotificationEnabled

  • isEmitNotificationEnabled(node: Node): boolean
  • Determines whether before/after emit notifications should be raised in the pretty printer when it emits a node.

    Parameters

    Returns boolean

isSubstitutionEnabled

  • isSubstitutionEnabled(node: Node): boolean
  • Determines whether expression substitutions are enabled for the provided node.

    Parameters

    Returns boolean

onEmitNode

  • Hook used to allow transformers to capture state before or after the printer emits a node.

    NOTE: Transformation hooks should only be modified during Transformer initialization, before returning the NodeTransformer callback.

    Parameters

    Returns void

onSubstituteNode

  • Hook used by transformers to substitute expressions just before they are emitted by the pretty printer.

    NOTE: Transformation hooks should only be modified during Transformer initialization, before returning the NodeTransformer callback.

    Parameters

    Returns Node

readEmitHelpers

  • Gets and resets the requested non-scoped emit helpers.

    Returns EmitHelper[]

requestEmitHelper

  • Records a request for a non-scoped emit helper in the current context.

    Parameters

    Returns void

resumeLexicalEnvironment

  • resumeLexicalEnvironment(): void

startLexicalEnvironment

  • startLexicalEnvironment(): void

suspendLexicalEnvironment

  • suspendLexicalEnvironment(): void

Generated using TypeDoc