Liking cljdoc? Tell your friends :D

dots.typescript.transformation-context


compiler-optionscljs

(compiler-options transformation-context)

Gets the compiler options supplied to the transformer.

Returns: CompilerOptions

Gets the compiler options supplied to the transformer.

**Returns:** `CompilerOptions`
sourceraw docstring

emit-notification-enabled?cljs

(emit-notification-enabled? transformation-context node)

Determines whether before/after emit notifications should be raised in the pretty printer when it emits a node.

Parameters:

  • node: Node

Returns: boolean

Determines whether before/after emit notifications should be raised in the pretty
printer when it emits a node.

**Parameters:**
- `node`: `Node`

**Returns:** `boolean`
sourceraw docstring

enable-emit-notificationcljs

(enable-emit-notification transformation-context kind)

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

Parameters:

  • kind: SyntaxKind

Returns: void

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

**Parameters:**
- `kind`: `SyntaxKind`

**Returns:** `void`
sourceraw docstring

enable-substitutioncljs

(enable-substitution transformation-context kind)

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

Parameters:

  • kind: SyntaxKind

Returns: void

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

**Parameters:**
- `kind`: `SyntaxKind`

**Returns:** `void`
sourceraw docstring

end-lexical-environmentcljs

(end-lexical-environment transformation-context)

Ends a lexical environment, returning any declarations.

Returns: Statement[] | undefined

Ends a lexical environment, returning any declarations.

**Returns:** `Statement[] | undefined`
sourceraw docstring

factorycljs

(factory transformation-context)

Returns: NodeFactory

**Returns:** `NodeFactory`
sourceraw docstring

hoist-function-declarationcljs

(hoist-function-declaration transformation-context node)

Hoists a function declaration to the containing scope.

Parameters:

  • node: FunctionDeclaration

Returns: void

Hoists a function declaration to the containing scope.

**Parameters:**
- `node`: `FunctionDeclaration`

**Returns:** `void`
sourceraw docstring

hoist-variable-declarationcljs

(hoist-variable-declaration transformation-context node)

Hoists a variable declaration to the containing scope.

Parameters:

  • node: Identifier

Returns: void

Hoists a variable declaration to the containing scope.

**Parameters:**
- `node`: `Identifier`

**Returns:** `void`
sourceraw docstring

on-emit-nodecljs

(on-emit-node transformation-context)

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.

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

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.

**Returns:** `(hint: EmitHint, node: Node, emitCallback: (hint: EmitHint, node: Node) => void) => void`
sourceraw docstring

on-substitute-nodecljs

(on-substitute-node transformation-context)

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.

Returns: (hint: EmitHint, node: Node) => Node

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.

**Returns:** `(hint: EmitHint, node: Node) => Node`
sourceraw docstring

read-emit-helperscljs

(read-emit-helpers transformation-context)

Gets and resets the requested non-scoped emit helpers.

Returns: EmitHelper[] | undefined

Gets and resets the requested non-scoped emit helpers.

**Returns:** `EmitHelper[] | undefined`
sourceraw docstring

request-emit-helpercljs

(request-emit-helper transformation-context helper)

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

Parameters:

  • helper: EmitHelper

Returns: void

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

**Parameters:**
- `helper`: `EmitHelper`

**Returns:** `void`
sourceraw docstring

resume-lexical-environmentcljs

(resume-lexical-environment transformation-context)

Resumes a suspended lexical environment, usually before visiting a function body.

Returns: void

Resumes a suspended lexical environment, usually before visiting a function body.

**Returns:** `void`
sourceraw docstring

set-on-emit-node!cljs

(set-on-emit-node! transformation-context value)

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.

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.
sourceraw docstring

set-on-substitute-node!cljs

(set-on-substitute-node! transformation-context value)

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.

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.
sourceraw docstring

start-lexical-environmentcljs

(start-lexical-environment transformation-context)

Starts a new lexical environment.

Returns: void

Starts a new lexical environment.

**Returns:** `void`
sourceraw docstring

substitution-enabled?cljs

(substitution-enabled? transformation-context node)

Determines whether expression substitutions are enabled for the provided node.

Parameters:

  • node: Node

Returns: boolean

Determines whether expression substitutions are enabled for the provided node.

**Parameters:**
- `node`: `Node`

**Returns:** `boolean`
sourceraw docstring

suspend-lexical-environmentcljs

(suspend-lexical-environment transformation-context)

Suspends the current lexical environment, usually after visiting a parameter list.

Returns: void

Suspends the current lexical environment, usually after visiting a parameter list.

**Returns:** `void`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close