Liking cljdoc? Tell your friends :D
ClojureScript only.

dots.typescript


accessor?cljs

(accessor? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

add-emit-helpercljs

(add-emit-helper node helper)

Adds an EmitHelper to a node.

Parameters:

  • node: T
  • helper: EmitHelper

Returns: T

Adds an EmitHelper to a node.

**Parameters:**
- `node`: `T`
- `helper`: `EmitHelper`

**Returns:** `T`
sourceraw docstring

add-emit-helperscljs

(add-emit-helpers node)
(add-emit-helpers node helpers)

Add EmitHelpers to a node.

Parameters:

  • node: T
  • helpers: EmitHelper[] | undefined

Returns: T

Add EmitHelpers to a node.

**Parameters:**
- `node`: `T`
- `helpers`: `EmitHelper[] | undefined`

**Returns:** `T`
sourceraw docstring

add-synthetic-leading-commentcljs

(add-synthetic-leading-comment node kind text)
(add-synthetic-leading-comment node kind text has-trailing-new-line?)

Parameters:

  • node: T
  • kind: SyntaxKind.SingleLineCommentTrivia | SyntaxKind.MultiLineCommentTrivia
  • text: string
  • has-trailing-new-line?: boolean | undefined

Returns: T

**Parameters:**
- `node`: `T`
- `kind`: `SyntaxKind.SingleLineCommentTrivia | SyntaxKind.MultiLineCommentTrivia`
- `text`: `string`
- `has-trailing-new-line?`: `boolean | undefined`

**Returns:** `T`
sourceraw docstring

add-synthetic-trailing-commentcljs

(add-synthetic-trailing-comment node kind text)
(add-synthetic-trailing-comment node kind text has-trailing-new-line?)

Parameters:

  • node: T
  • kind: SyntaxKind.SingleLineCommentTrivia | SyntaxKind.MultiLineCommentTrivia
  • text: string
  • has-trailing-new-line?: boolean | undefined

Returns: T

**Parameters:**
- `node`: `T`
- `kind`: `SyntaxKind.SingleLineCommentTrivia | SyntaxKind.MultiLineCommentTrivia`
- `text`: `string`
- `has-trailing-new-line?`: `boolean | undefined`

**Returns:** `T`
sourceraw docstring

all-js-doc-tagscljs

(all-js-doc-tags node predicate)

Gets all JSDoc tags that match a specified predicate

Parameters:

  • node: Node
  • predicate: (tag: JSDocTag) => tag is T

Returns: readonly T[]

Gets all JSDoc tags that match a specified predicate

**Parameters:**
- `node`: `Node`
- `predicate`: `(tag: JSDocTag) => tag is T`

**Returns:** `readonly T[]`
sourceraw docstring

all-js-doc-tags-of-kindcljs

(all-js-doc-tags-of-kind node kind)

Gets all JSDoc tags of a specified kind

Parameters:

  • node: Node
  • kind: SyntaxKind

Returns: readonly JSDocTag[]

Gets all JSDoc tags of a specified kind

**Parameters:**
- `node`: `Node`
- `kind`: `SyntaxKind`

**Returns:** `readonly JSDocTag[]`
sourceraw docstring

array-binding-element?cljs

(array-binding-element? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

array-binding-pattern?cljs

(array-binding-pattern? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

array-literal-expression?cljs

(array-literal-expression? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

array-type-node?cljs

(array-type-node? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

arrow-function?cljs

(arrow-function? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

as-expression?cljs

(as-expression? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

assert-clause?cljs

(assert-clause? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

assert-entry?cljs

(assert-entry? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

assertion-expression?cljs

(assertion-expression? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

asserts-keyword?cljs

(asserts-keyword? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

asterisk-token?cljs

(asterisk-token? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

auto-accessor-property-declaration?cljs

(auto-accessor-property-declaration? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

automatic-type-directive-namescljs

(automatic-type-directive-names options host)

Given a set of options, returns the set of type directive names that should be included for this program automatically. This list could either come from the config file, or from enumerating the types root + initial secondary types lookup location. More type directives might appear in the program later as a result of loading actual source files; this list is only the set of defaults that are implicitly included.

Parameters:

  • options: CompilerOptions
  • host: ModuleResolutionHost

Returns: string[]

Given a set of options, returns the set of type directive names
  that should be included for this program automatically.
This list could either come from the config file,
  or from enumerating the types root + initial secondary types lookup location.
More type directives might appear in the program later as a result of loading actual source files;
  this list is only the set of defaults that are implicitly included.

**Parameters:**
- `options`: `CompilerOptions`
- `host`: `ModuleResolutionHost`

**Returns:** `string[]`
sourceraw docstring

await-expression?cljs

(await-expression? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

await-keyword?cljs

(await-keyword? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

big-int-literal?cljs

(big-int-literal? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

binary-expression?cljs

(binary-expression? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

binary-operator-token?cljs

(binary-operator-token? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

binding-element?cljs

(binding-element? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

binding-name?cljs

(binding-name? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

block?cljs

(block? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

break-or-continue-statement?cljs

(break-or-continue-statement? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

break-statement?cljs

(break-statement? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

bundle?cljs

(bundle? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

bundler-module-name-resolvercljs

(bundler-module-name-resolver module-name containing-file compiler-options host)
(bundler-module-name-resolver module-name
                              containing-file
                              compiler-options
                              host
                              cache)
(bundler-module-name-resolver module-name
                              containing-file
                              compiler-options
                              host
                              cache
                              redirected-reference)

Parameters:

  • module-name: string
  • containing-file: string
  • compiler-options: CompilerOptions
  • host: ModuleResolutionHost
  • cache: ModuleResolutionCache | undefined
  • redirected-reference: ResolvedProjectReference | undefined

Returns: ResolvedModuleWithFailedLookupLocations

**Parameters:**
- `module-name`: `string`
- `containing-file`: `string`
- `compiler-options`: `CompilerOptions`
- `host`: `ModuleResolutionHost`
- `cache`: `ModuleResolutionCache | undefined`
- `redirected-reference`: `ResolvedProjectReference | undefined`

**Returns:** `ResolvedModuleWithFailedLookupLocations`
sourceraw docstring

call-chain?cljs

(call-chain? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

call-expression?cljs

(call-expression? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

call-like-expression?cljs

(call-like-expression? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

call-or-new-expression?cljs

(call-or-new-expression? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

call-signature-declaration?cljs

(call-signature-declaration? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

can-have-decorators?cljs

(can-have-decorators? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

can-have-modifiers?cljs

(can-have-modifiers? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

case-block?cljs

(case-block? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

case-clause?cljs

(case-clause? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

case-or-default-clause?cljs

(case-or-default-clause? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

catch-clause?cljs

(catch-clause? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

class-declaration?cljs

(class-declaration? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

class-element?cljs

(class-element? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

class-expression?cljs

(class-expression? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

class-like?cljs

(class-like? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

class-or-type-element?cljs

(class-or-type-element? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

class-static-block-declaration?cljs

(class-static-block-declaration? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

classic-name-resolvercljs

(classic-name-resolver module-name containing-file compiler-options host)
(classic-name-resolver module-name containing-file compiler-options host cache)
(classic-name-resolver module-name
                       containing-file
                       compiler-options
                       host
                       cache
                       redirected-reference)

Parameters:

  • module-name: string
  • containing-file: string
  • compiler-options: CompilerOptions
  • host: ModuleResolutionHost
  • cache: NonRelativeModuleNameResolutionCache | undefined
  • redirected-reference: ResolvedProjectReference | undefined

Returns: ResolvedModuleWithFailedLookupLocations

**Parameters:**
- `module-name`: `string`
- `containing-file`: `string`
- `compiler-options`: `CompilerOptions`
- `host`: `ModuleResolutionHost`
- `cache`: `NonRelativeModuleNameResolutionCache | undefined`
- `redirected-reference`: `ResolvedProjectReference | undefined`

**Returns:** `ResolvedModuleWithFailedLookupLocations`
sourceraw docstring

collapse-text-change-ranges-across-multiple-versionscljs

(collapse-text-change-ranges-across-multiple-versions changes)

Called to merge all the changes that occurred across several versions of a script snapshot into a single change. i.e. if a user keeps making successive edits to a script we will have a text change from V1 to V2, V2 to V3, ..., Vn.

This function will then merge those changes into a single change range valid between V1 and Vn.

Parameters:

  • changes: readonly TextChangeRange[]

Returns: TextChangeRange

Called to merge all the changes that occurred across several versions of a script snapshot
into a single change.  i.e. if a user keeps making successive edits to a script we will
have a text change from V1 to V2, V2 to V3, ..., Vn.

This function will then merge those changes into a single change range valid between V1 and
Vn.

**Parameters:**
- `changes`: `readonly TextChangeRange[]`

**Returns:** `TextChangeRange`
sourceraw docstring

colon-token?cljs

(colon-token? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

combined-modifier-flagscljs

(combined-modifier-flags node)

Parameters:

  • node: Declaration

Returns: ModifierFlags

**Parameters:**
- `node`: `Declaration`

**Returns:** `ModifierFlags`
sourceraw docstring

combined-node-flagscljs

(combined-node-flags node)

Parameters:

  • node: Node

Returns: NodeFlags

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

**Returns:** `NodeFlags`
sourceraw docstring

comma-list-expression?cljs

(comma-list-expression? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

comment-rangecljs

(comment-range node)

Gets a custom text range to use when emitting comments.

Parameters:

  • node: Node

Returns: TextRange

Gets a custom text range to use when emitting comments.

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

**Returns:** `TextRange`
sourceraw docstring

computed-property-name?cljs

(computed-property-name? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

concise-body?cljs

(concise-body? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

conditional-expression?cljs

(conditional-expression? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

conditional-type-node?cljs

(conditional-type-node? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

config-file-parsing-diagnosticscljs

(config-file-parsing-diagnostics config-file-parse-result)

Parameters:

  • config-file-parse-result: ParsedCommandLine

Returns: readonly Diagnostic[]

**Parameters:**
- `config-file-parse-result`: `ParsedCommandLine`

**Returns:** `readonly Diagnostic[]`
sourceraw docstring

const-type-reference?cljs

(const-type-reference? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

constant-valuecljs

(constant-value node)

Gets the constant value to emit for an expression representing an enum.

Parameters:

  • node: AccessExpression

Returns: string | number | undefined

Gets the constant value to emit for an expression representing an enum.

**Parameters:**
- `node`: `AccessExpression`

**Returns:** `string | number | undefined`
sourceraw docstring

construct-signature-declaration?cljs

(construct-signature-declaration? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

constructor-declaration?cljs

(constructor-declaration? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

constructor-type-node?cljs

(constructor-type-node? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

continue-statement?cljs

(continue-statement? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

convert-compiler-options-from-jsoncljs

(convert-compiler-options-from-json json-options base-path)
(convert-compiler-options-from-json json-options base-path config-file-name)

Parameters:

  • json-options: any
  • base-path: string
  • config-file-name: string | undefined

Returns: { options: CompilerOptions; errors: Diagnostic[]; }

**Parameters:**
- `json-options`: `any`
- `base-path`: `string`
- `config-file-name`: `string | undefined`

**Returns:** `{ options: CompilerOptions; errors: Diagnostic[]; }`
sourceraw docstring

convert-to-objectcljs

(convert-to-object source-file errors)

Convert the json syntax tree into the json value

Parameters:

  • source-file: JsonSourceFile
  • errors: Diagnostic[]

Returns: any

Convert the json syntax tree into the json value

**Parameters:**
- `source-file`: `JsonSourceFile`
- `errors`: `Diagnostic[]`

**Returns:** `any`
sourceraw docstring

convert-type-acquisition-from-jsoncljs

(convert-type-acquisition-from-json json-options base-path)
(convert-type-acquisition-from-json json-options base-path config-file-name)

Parameters:

  • json-options: any
  • base-path: string
  • config-file-name: string | undefined

Returns: { options: TypeAcquisition; errors: Diagnostic[]; }

**Parameters:**
- `json-options`: `any`
- `base-path`: `string`
- `config-file-name`: `string | undefined`

**Returns:** `{ options: TypeAcquisition; errors: Diagnostic[]; }`
sourceraw docstring

could-start-trivia?cljs

(could-start-trivia? text pos)

Parameters:

  • text: string
  • pos: number

Returns: boolean

**Parameters:**
- `text`: `string`
- `pos`: `number`

**Returns:** `boolean`
sourceraw docstring

create-abstract-buildercljs

(create-abstract-builder)
(create-abstract-builder root-names)
(create-abstract-builder new-program host)
(create-abstract-builder root-names options)
(create-abstract-builder new-program host old-program)
(create-abstract-builder root-names options host)
(create-abstract-builder new-program
                         host
                         old-program
                         config-file-parsing-diagnostics)
(create-abstract-builder root-names options host old-program)
(create-abstract-builder root-names
                         options
                         host
                         old-program
                         config-file-parsing-diagnostics)
(create-abstract-builder root-names
                         options
                         host
                         old-program
                         config-file-parsing-diagnostics
                         project-references)

Creates a builder thats just abstraction over program and can be used with watch

Parameters:

  • new-program: Program
  • root-names: readonly string[] | undefined
  • options: CompilerOptions | undefined
  • host: CompilerHost | undefined
  • old-program: BuilderProgram | undefined
  • config-file-parsing-diagnostics: readonly Diagnostic[] | undefined
  • project-references: readonly ProjectReference[] | undefined

Returns: BuilderProgram

Creates a builder thats just abstraction over program and can be used with watch

**Parameters:**
- `new-program`: `Program`
- `root-names`: `readonly string[] | undefined`
- `options`: `CompilerOptions | undefined`
- `host`: `CompilerHost | undefined`
- `old-program`: `BuilderProgram | undefined`
- `config-file-parsing-diagnostics`: `readonly Diagnostic[] | undefined`
- `project-references`: `readonly ProjectReference[] | undefined`

**Returns:** `BuilderProgram`
sourceraw docstring

create-builder-status-reportercljs

(create-builder-status-reporter system)
(create-builder-status-reporter system pretty?)

Create a function that reports watch status by writing to the system and handles the formating of the diagnostic

Parameters:

  • system: System
  • pretty?: boolean | undefined

Returns: DiagnosticReporter

Create a function that reports watch status by writing to the system and handles the formating of the diagnostic

**Parameters:**
- `system`: `System`
- `pretty?`: `boolean | undefined`

**Returns:** `DiagnosticReporter`
sourceraw docstring

create-classifiercljs

(create-classifier)

The classifier is used for syntactic highlighting in editors via the TSServer

Returns: Classifier

The classifier is used for syntactic highlighting in editors via the TSServer

**Returns:** `Classifier`
sourceraw docstring

create-compiler-hostcljs

(create-compiler-host options)
(create-compiler-host options set-parent-nodes?)

Parameters:

  • options: CompilerOptions
  • set-parent-nodes?: boolean | undefined

Returns: CompilerHost

**Parameters:**
- `options`: `CompilerOptions`
- `set-parent-nodes?`: `boolean | undefined`

**Returns:** `CompilerHost`
sourceraw docstring

create-document-registrycljs

(create-document-registry)
(create-document-registry use-case-sensitive-file-names?)
(create-document-registry use-case-sensitive-file-names? current-directory)
(create-document-registry use-case-sensitive-file-names?
                          current-directory
                          js-doc-parsing-mode)

Parameters:

  • use-case-sensitive-file-names?: boolean | undefined
  • current-directory: string | undefined
  • js-doc-parsing-mode: JSDocParsingMode | undefined

Returns: DocumentRegistry

**Parameters:**
- `use-case-sensitive-file-names?`: `boolean | undefined`
- `current-directory`: `string | undefined`
- `js-doc-parsing-mode`: `JSDocParsingMode | undefined`

**Returns:** `DocumentRegistry`
sourceraw docstring

create-emit-and-semantic-diagnostics-builder-programcljs

(create-emit-and-semantic-diagnostics-builder-program)
(create-emit-and-semantic-diagnostics-builder-program root-names)
(create-emit-and-semantic-diagnostics-builder-program new-program host)
(create-emit-and-semantic-diagnostics-builder-program root-names options)
(create-emit-and-semantic-diagnostics-builder-program new-program
                                                      host
                                                      old-program)
(create-emit-and-semantic-diagnostics-builder-program root-names options host)
(create-emit-and-semantic-diagnostics-builder-program
  new-program
  host
  old-program
  config-file-parsing-diagnostics)
(create-emit-and-semantic-diagnostics-builder-program root-names
                                                      options
                                                      host
                                                      old-program)
(create-emit-and-semantic-diagnostics-builder-program
  root-names
  options
  host
  old-program
  config-file-parsing-diagnostics)
(create-emit-and-semantic-diagnostics-builder-program
  root-names
  options
  host
  old-program
  config-file-parsing-diagnostics
  project-references)

Create the builder that can handle the changes in program and iterate through changed files to emit the those files and manage semantic diagnostics cache as well

Parameters:

  • new-program: Program
  • root-names: readonly string[] | undefined
  • options: CompilerOptions | undefined
  • host: CompilerHost | undefined
  • old-program: EmitAndSemanticDiagnosticsBuilderProgram | undefined
  • config-file-parsing-diagnostics: readonly Diagnostic[] | undefined
  • project-references: readonly ProjectReference[] | undefined

Returns: EmitAndSemanticDiagnosticsBuilderProgram

Create the builder that can handle the changes in program and iterate through changed files
to emit the those files and manage semantic diagnostics cache as well

**Parameters:**
- `new-program`: `Program`
- `root-names`: `readonly string[] | undefined`
- `options`: `CompilerOptions | undefined`
- `host`: `CompilerHost | undefined`
- `old-program`: `EmitAndSemanticDiagnosticsBuilderProgram | undefined`
- `config-file-parsing-diagnostics`: `readonly Diagnostic[] | undefined`
- `project-references`: `readonly ProjectReference[] | undefined`

**Returns:** `EmitAndSemanticDiagnosticsBuilderProgram`
sourceraw docstring

create-incremental-compiler-hostcljs

(create-incremental-compiler-host options)
(create-incremental-compiler-host options system)

Parameters:

  • options: CompilerOptions
  • system: System | undefined

Returns: CompilerHost

**Parameters:**
- `options`: `CompilerOptions`
- `system`: `System | undefined`

**Returns:** `CompilerHost`
sourceraw docstring

create-incremental-programcljs

(create-incremental-program
  root-names-options-config-file-parsing-diagnostics-project-references-host-create-program)

Parameters:

  • root-names-options-config-file-parsing-diagnostics-project-references-host-create-program: IncrementalProgramOptions<T>

Returns: T

**Parameters:**
- `root-names-options-config-file-parsing-diagnostics-project-references-host-create-program`: `IncrementalProgramOptions<T>`

**Returns:** `T`
sourceraw docstring

create-input-filescljs

(create-input-files javascript-text declaration-text)
(create-input-files read-file-text javascript-path)
(create-input-files javascript-text declaration-text javascript-map-path)
(create-input-files read-file-text javascript-path javascript-map-path)
(create-input-files javascript-text
                    declaration-text
                    javascript-map-path
                    javascript-map-text)
(create-input-files read-file-text
                    javascript-path
                    javascript-map-path
                    declaration-path)
(create-input-files javascript-text
                    declaration-text
                    javascript-map-path
                    javascript-map-text
                    declaration-map-path)
(create-input-files read-file-text
                    javascript-path
                    javascript-map-path
                    declaration-path
                    declaration-map-path)
(create-input-files javascript-text
                    declaration-text
                    javascript-map-path
                    javascript-map-text
                    declaration-map-path
                    declaration-map-text)
(create-input-files read-file-text
                    javascript-path
                    javascript-map-path
                    declaration-path
                    declaration-map-path
                    build-info-path)

Parameters:

  • javascript-text: string
  • read-file-text: (path: string) => string | undefined
  • declaration-text: string
  • javascript-path: string
  • javascript-map-path: string | undefined
  • declaration-path: string
  • javascript-map-text: string | undefined
  • declaration-map-path: string | undefined
  • build-info-path: string | undefined
  • declaration-map-text: string | undefined

Returns: InputFiles

**Parameters:**
- `javascript-text`: `string`
- `read-file-text`: `(path: string) => string | undefined`
- `declaration-text`: `string`
- `javascript-path`: `string`
- `javascript-map-path`: `string | undefined`
- `declaration-path`: `string`
- `javascript-map-text`: `string | undefined`
- `declaration-map-path`: `string | undefined`
- `build-info-path`: `string | undefined`
- `declaration-map-text`: `string | undefined`

**Returns:** `InputFiles`
sourceraw docstring

create-language-servicecljs

(create-language-service host)
(create-language-service host document-registry)
(create-language-service host
                         document-registry
                         syntax-only-or-language-service-mode?)

Parameters:

  • host: LanguageServiceHost
  • document-registry: DocumentRegistry | undefined
  • syntax-only-or-language-service-mode?: boolean | LanguageServiceMode | undefined

Returns: LanguageService

**Parameters:**
- `host`: `LanguageServiceHost`
- `document-registry`: `DocumentRegistry | undefined`
- `syntax-only-or-language-service-mode?`: `boolean | LanguageServiceMode | undefined`

**Returns:** `LanguageService`
sourceraw docstring

create-language-service-source-filecljs

(create-language-service-source-file file-name
                                     script-snapshot
                                     script-target-or-options
                                     version
                                     set-node-parents?)
(create-language-service-source-file file-name
                                     script-snapshot
                                     script-target-or-options
                                     version
                                     set-node-parents?
                                     script-kind)

Parameters:

  • file-name: string
  • script-snapshot: IScriptSnapshot
  • script-target-or-options: ScriptTarget | CreateSourceFileOptions
  • version: string
  • set-node-parents?: boolean
  • script-kind: ScriptKind | undefined

Returns: SourceFile

**Parameters:**
- `file-name`: `string`
- `script-snapshot`: `IScriptSnapshot`
- `script-target-or-options`: `ScriptTarget | CreateSourceFileOptions`
- `version`: `string`
- `set-node-parents?`: `boolean`
- `script-kind`: `ScriptKind | undefined`

**Returns:** `SourceFile`
sourceraw docstring

create-module-resolution-cachecljs

(create-module-resolution-cache current-directory canonical-file-name)
(create-module-resolution-cache current-directory canonical-file-name options)
(create-module-resolution-cache current-directory
                                canonical-file-name
                                options
                                package-json-info-cache)

Parameters:

  • current-directory: string
  • canonical-file-name: (s: string) => string
  • options: CompilerOptions | undefined
  • package-json-info-cache: PackageJsonInfoCache | undefined

Returns: ModuleResolutionCache

**Parameters:**
- `current-directory`: `string`
- `canonical-file-name`: `(s: string) => string`
- `options`: `CompilerOptions | undefined`
- `package-json-info-cache`: `PackageJsonInfoCache | undefined`

**Returns:** `ModuleResolutionCache`
sourceraw docstring

create-printercljs

(create-printer)
(create-printer printer-options)
(create-printer printer-options handlers)

Parameters:

  • printer-options: PrinterOptions | undefined
  • handlers: PrintHandlers | undefined

Returns: Printer

**Parameters:**
- `printer-options`: `PrinterOptions | undefined`
- `handlers`: `PrintHandlers | undefined`

**Returns:** `Printer`
sourceraw docstring

create-programcljs

(create-program create-program-options)
(create-program root-names options)
(create-program root-names options host)
(create-program root-names options host old-program)
(create-program root-names
                options
                host
                old-program
                config-file-parsing-diagnostics)

Create a new 'Program' instance. A Program is an immutable collection of 'SourceFile's and a 'CompilerOptions' that represent a compilation unit.

Creating a program proceeds from a set of root files, expanding the set of inputs by following imports and triple-slash-reference-path directives transitively. '@types' and triple-slash-reference-types are also pulled in.

Parameters:

  • create-program-options: CreateProgramOptions - - The options for creating a program.
  • root-names: readonly string[] - - A set of root files.
  • options: CompilerOptions - - The compiler options which should be used.
  • host: CompilerHost | undefined - - The host interacts with the underlying file system.
  • old-program: Program | undefined - - Reuses an old program structure.
  • config-file-parsing-diagnostics: readonly Diagnostic[] | undefined - - error during config file parsing

Returns: Program - A 'Program' object.

Create a new 'Program' instance. A Program is an immutable collection of 'SourceFile's and a 'CompilerOptions'
that represent a compilation unit.

Creating a program proceeds from a set of root files, expanding the set of inputs by following imports and
triple-slash-reference-path directives transitively. '@types' and triple-slash-reference-types are also pulled in.

**Parameters:**
- `create-program-options`: `CreateProgramOptions` - - The options for creating a program.
- `root-names`: `readonly string[]` - - A set of root files.
- `options`: `CompilerOptions` - - The compiler options which should be used.
- `host`: `CompilerHost | undefined` - - The host interacts with the underlying file system.
- `old-program`: `Program | undefined` - - Reuses an old program structure.
- `config-file-parsing-diagnostics`: `readonly Diagnostic[] | undefined` - - error during config file parsing

**Returns:** `Program` - A 'Program' object.
sourceraw docstring

create-scannercljs

(create-scanner language-version skip-trivia?)
(create-scanner language-version skip-trivia? language-variant)
(create-scanner language-version skip-trivia? language-variant text-initial)
(create-scanner language-version
                skip-trivia?
                language-variant
                text-initial
                on-error)
(create-scanner language-version
                skip-trivia?
                language-variant
                text-initial
                on-error
                start)
(create-scanner language-version
                skip-trivia?
                language-variant
                text-initial
                on-error
                start
                length)

Parameters:

  • language-version: ScriptTarget
  • skip-trivia?: boolean
  • language-variant: LanguageVariant | undefined
  • text-initial: string | undefined
  • on-error: ErrorCallback | undefined
  • start: number | undefined
  • length: number | undefined

Returns: Scanner

**Parameters:**
- `language-version`: `ScriptTarget`
- `skip-trivia?`: `boolean`
- `language-variant`: `LanguageVariant | undefined`
- `text-initial`: `string | undefined`
- `on-error`: `ErrorCallback | undefined`
- `start`: `number | undefined`
- `length`: `number | undefined`

**Returns:** `Scanner`
sourceraw docstring

create-semantic-diagnostics-builder-programcljs

(create-semantic-diagnostics-builder-program)
(create-semantic-diagnostics-builder-program root-names)
(create-semantic-diagnostics-builder-program new-program host)
(create-semantic-diagnostics-builder-program root-names options)
(create-semantic-diagnostics-builder-program new-program host old-program)
(create-semantic-diagnostics-builder-program root-names options host)
(create-semantic-diagnostics-builder-program new-program
                                             host
                                             old-program
                                             config-file-parsing-diagnostics)
(create-semantic-diagnostics-builder-program root-names
                                             options
                                             host
                                             old-program)
(create-semantic-diagnostics-builder-program root-names
                                             options
                                             host
                                             old-program
                                             config-file-parsing-diagnostics)
(create-semantic-diagnostics-builder-program root-names
                                             options
                                             host
                                             old-program
                                             config-file-parsing-diagnostics
                                             project-references)

Create the builder to manage semantic diagnostics and cache them

Parameters:

  • new-program: Program
  • root-names: readonly string[] | undefined
  • options: CompilerOptions | undefined
  • host: CompilerHost | undefined
  • old-program: SemanticDiagnosticsBuilderProgram | undefined
  • config-file-parsing-diagnostics: readonly Diagnostic[] | undefined
  • project-references: readonly ProjectReference[] | undefined

Returns: SemanticDiagnosticsBuilderProgram

Create the builder to manage semantic diagnostics and cache them

**Parameters:**
- `new-program`: `Program`
- `root-names`: `readonly string[] | undefined`
- `options`: `CompilerOptions | undefined`
- `host`: `CompilerHost | undefined`
- `old-program`: `SemanticDiagnosticsBuilderProgram | undefined`
- `config-file-parsing-diagnostics`: `readonly Diagnostic[] | undefined`
- `project-references`: `readonly ProjectReference[] | undefined`

**Returns:** `SemanticDiagnosticsBuilderProgram`
sourceraw docstring

create-solution-buildercljs

(create-solution-builder host root-names default-options)

Parameters:

  • host: SolutionBuilderHost<T>
  • root-names: readonly string[]
  • default-options: BuildOptions

Returns: SolutionBuilder<T>

**Parameters:**
- `host`: `SolutionBuilderHost<T>`
- `root-names`: `readonly string[]`
- `default-options`: `BuildOptions`

**Returns:** `SolutionBuilder<T>`
sourceraw docstring

create-solution-builder-hostcljs

(create-solution-builder-host)
(create-solution-builder-host system)
(create-solution-builder-host system create-program)
(create-solution-builder-host system create-program report-diagnostic)
(create-solution-builder-host system
                              create-program
                              report-diagnostic
                              report-solution-builder-status)
(create-solution-builder-host system
                              create-program
                              report-diagnostic
                              report-solution-builder-status
                              report-error-summary)

Parameters:

  • system: System | undefined
  • create-program: CreateProgram<T> | undefined
  • report-diagnostic: DiagnosticReporter | undefined
  • report-solution-builder-status: DiagnosticReporter | undefined
  • report-error-summary: ReportEmitErrorSummary | undefined

Returns: SolutionBuilderHost<T>

**Parameters:**
- `system`: `System | undefined`
- `create-program`: `CreateProgram<T> | undefined`
- `report-diagnostic`: `DiagnosticReporter | undefined`
- `report-solution-builder-status`: `DiagnosticReporter | undefined`
- `report-error-summary`: `ReportEmitErrorSummary | undefined`

**Returns:** `SolutionBuilderHost<T>`
sourceraw docstring

create-solution-builder-with-watchcljs

(create-solution-builder-with-watch host root-names default-options)
(create-solution-builder-with-watch host
                                    root-names
                                    default-options
                                    base-watch-options)

Parameters:

  • host: SolutionBuilderWithWatchHost<T>
  • root-names: readonly string[]
  • default-options: BuildOptions
  • base-watch-options: WatchOptions | undefined

Returns: SolutionBuilder<T>

**Parameters:**
- `host`: `SolutionBuilderWithWatchHost<T>`
- `root-names`: `readonly string[]`
- `default-options`: `BuildOptions`
- `base-watch-options`: `WatchOptions | undefined`

**Returns:** `SolutionBuilder<T>`
sourceraw docstring

create-solution-builder-with-watch-hostcljs

(create-solution-builder-with-watch-host)
(create-solution-builder-with-watch-host system)
(create-solution-builder-with-watch-host system create-program)
(create-solution-builder-with-watch-host system
                                         create-program
                                         report-diagnostic)
(create-solution-builder-with-watch-host system
                                         create-program
                                         report-diagnostic
                                         report-solution-builder-status)
(create-solution-builder-with-watch-host system
                                         create-program
                                         report-diagnostic
                                         report-solution-builder-status
                                         report-watch-status)

Parameters:

  • system: System | undefined
  • create-program: CreateProgram<T> | undefined
  • report-diagnostic: DiagnosticReporter | undefined
  • report-solution-builder-status: DiagnosticReporter | undefined
  • report-watch-status: WatchStatusReporter | undefined

Returns: SolutionBuilderWithWatchHost<T>

**Parameters:**
- `system`: `System | undefined`
- `create-program`: `CreateProgram<T> | undefined`
- `report-diagnostic`: `DiagnosticReporter | undefined`
- `report-solution-builder-status`: `DiagnosticReporter | undefined`
- `report-watch-status`: `WatchStatusReporter | undefined`

**Returns:** `SolutionBuilderWithWatchHost<T>`
sourceraw docstring

create-source-filecljs

(create-source-file file-name source-text language-version-or-options)
(create-source-file file-name
                    source-text
                    language-version-or-options
                    set-parent-nodes?)
(create-source-file file-name
                    source-text
                    language-version-or-options
                    set-parent-nodes?
                    script-kind)

Parameters:

  • file-name: string
  • source-text: string
  • language-version-or-options: ScriptTarget | CreateSourceFileOptions
  • set-parent-nodes?: boolean | undefined
  • script-kind: ScriptKind | undefined

Returns: SourceFile

**Parameters:**
- `file-name`: `string`
- `source-text`: `string`
- `language-version-or-options`: `ScriptTarget | CreateSourceFileOptions`
- `set-parent-nodes?`: `boolean | undefined`
- `script-kind`: `ScriptKind | undefined`

**Returns:** `SourceFile`
sourceraw docstring

create-source-map-sourcecljs

(create-source-map-source file-name text)
(create-source-map-source file-name text skip-trivia)

Create an external source map source file reference

Parameters:

  • file-name: string
  • text: string
  • skip-trivia: ((pos: number) => number) | undefined

Returns: SourceMapSource

Create an external source map source file reference

**Parameters:**
- `file-name`: `string`
- `text`: `string`
- `skip-trivia`: `((pos: number) => number) | undefined`

**Returns:** `SourceMapSource`
sourceraw docstring

create-text-change-rangecljs

(create-text-change-range span new-length)

Parameters:

  • span: TextSpan
  • new-length: number

Returns: TextChangeRange

**Parameters:**
- `span`: `TextSpan`
- `new-length`: `number`

**Returns:** `TextChangeRange`
sourceraw docstring

create-text-spancljs

(create-text-span start length)

Parameters:

  • start: number
  • length: number

Returns: TextSpan

**Parameters:**
- `start`: `number`
- `length`: `number`

**Returns:** `TextSpan`
sourceraw docstring

create-text-span-from-boundscljs

(create-text-span-from-bounds start end)

Parameters:

  • start: number
  • end: number

Returns: TextSpan

**Parameters:**
- `start`: `number`
- `end`: `number`

**Returns:** `TextSpan`
sourceraw docstring

create-type-reference-directive-resolution-cachecljs

(create-type-reference-directive-resolution-cache current-directory
                                                  canonical-file-name)
(create-type-reference-directive-resolution-cache current-directory
                                                  canonical-file-name
                                                  options)
(create-type-reference-directive-resolution-cache current-directory
                                                  canonical-file-name
                                                  options
                                                  package-json-info-cache)

Parameters:

  • current-directory: string
  • canonical-file-name: (s: string) => string
  • options: CompilerOptions | undefined
  • package-json-info-cache: PackageJsonInfoCache | undefined

Returns: TypeReferenceDirectiveResolutionCache

**Parameters:**
- `current-directory`: `string`
- `canonical-file-name`: `(s: string) => string`
- `options`: `CompilerOptions | undefined`
- `package-json-info-cache`: `PackageJsonInfoCache | undefined`

**Returns:** `TypeReferenceDirectiveResolutionCache`
sourceraw docstring

create-unparsed-source-filecljs

(create-unparsed-source-file text)
(create-unparsed-source-file input-file type)
(create-unparsed-source-file text map-path)
(create-unparsed-source-file input-file type strip-internal?)
(create-unparsed-source-file text map-path map)

Parameters:

  • input-file: InputFiles
  • text: string
  • map-path: string | undefined
  • type: "js" | "dts"
  • map: string | undefined
  • strip-internal?: boolean | undefined

Returns: UnparsedSource

**Parameters:**
- `input-file`: `InputFiles`
- `text`: `string`
- `map-path`: `string | undefined`
- `type`: `"js" | "dts"`
- `map`: `string | undefined`
- `strip-internal?`: `boolean | undefined`

**Returns:** `UnparsedSource`
sourceraw docstring

create-watch-compiler-hostcljs

(create-watch-compiler-host config-file-name)
(create-watch-compiler-host config-file-name options-to-extend)
(create-watch-compiler-host config-file-name options-to-extend system)
(create-watch-compiler-host root-files options system)
(create-watch-compiler-host config-file-name
                            options-to-extend
                            system
                            create-program)
(create-watch-compiler-host root-files options system create-program)
(create-watch-compiler-host config-file-name
                            options-to-extend
                            system
                            create-program
                            report-diagnostic)
(create-watch-compiler-host root-files
                            options
                            system
                            create-program
                            report-diagnostic)
(create-watch-compiler-host config-file-name
                            options-to-extend
                            system
                            create-program
                            report-diagnostic
                            report-watch-status)
(create-watch-compiler-host root-files
                            options
                            system
                            create-program
                            report-diagnostic
                            report-watch-status)
(create-watch-compiler-host config-file-name
                            options-to-extend
                            system
                            create-program
                            report-diagnostic
                            report-watch-status
                            watch-options-to-extend)
(create-watch-compiler-host root-files
                            options
                            system
                            create-program
                            report-diagnostic
                            report-watch-status
                            project-references)
(create-watch-compiler-host config-file-name
                            options-to-extend
                            system
                            create-program
                            report-diagnostic
                            report-watch-status
                            watch-options-to-extend
                            extra-file-extensions)
(create-watch-compiler-host root-files
                            options
                            system
                            create-program
                            report-diagnostic
                            report-watch-status
                            project-references
                            watch-options)

Create the watch compiler host for either configFile or fileNames and its options

Parameters:

  • config-file-name: string
  • root-files: string[]
  • options: CompilerOptions
  • options-to-extend: CompilerOptions | undefined
  • system: System
  • create-program: CreateProgram<T> | undefined
  • report-diagnostic: DiagnosticReporter | undefined
  • report-watch-status: WatchStatusReporter | undefined
  • project-references: readonly ProjectReference[] | undefined
  • watch-options-to-extend: WatchOptions | undefined
  • extra-file-extensions: readonly FileExtensionInfo[] | undefined
  • watch-options: WatchOptions | undefined

Returns: WatchCompilerHostOfFilesAndCompilerOptions<T>

Create the watch compiler host for either configFile or fileNames and its options

**Parameters:**
- `config-file-name`: `string`
- `root-files`: `string[]`
- `options`: `CompilerOptions`
- `options-to-extend`: `CompilerOptions | undefined`
- `system`: `System`
- `create-program`: `CreateProgram<T> | undefined`
- `report-diagnostic`: `DiagnosticReporter | undefined`
- `report-watch-status`: `WatchStatusReporter | undefined`
- `project-references`: `readonly ProjectReference[] | undefined`
- `watch-options-to-extend`: `WatchOptions | undefined`
- `extra-file-extensions`: `readonly FileExtensionInfo[] | undefined`
- `watch-options`: `WatchOptions | undefined`

**Returns:** `WatchCompilerHostOfFilesAndCompilerOptions<T>`
sourceraw docstring

create-watch-programcljs

(create-watch-program host)

Creates the watch from the host for root files and compiler options Creates the watch from the host for config file

Parameters:

  • host: WatchCompilerHostOfConfigFile<T>

Returns: WatchOfConfigFile<T>

Creates the watch from the host for root files and compiler options
Creates the watch from the host for config file

**Parameters:**
- `host`: `WatchCompilerHostOfConfigFile<T>`

**Returns:** `WatchOfConfigFile<T>`
sourceraw docstring

debugger-statement?cljs

(debugger-statement? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

declaration-statement?cljs

(declaration-statement? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

decoded-text-span-intersects-with?cljs

(decoded-text-span-intersects-with? start-1 length-1 start-2 length-2)

Parameters:

  • start-1: number
  • length-1: number
  • start-2: number
  • length-2: number

Returns: boolean

**Parameters:**
- `start-1`: `number`
- `length-1`: `number`
- `start-2`: `number`
- `length-2`: `number`

**Returns:** `boolean`
sourceraw docstring

decorator?cljs

(decorator? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

decoratorscljs

(decorators node)

Parameters:

  • node: HasDecorators

Returns: readonly Decorator[] | undefined

**Parameters:**
- `node`: `HasDecorators`

**Returns:** `readonly Decorator[] | undefined`
sourceraw docstring

default-clause?cljs

(default-clause? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

default-compiler-optionscljs

(default-compiler-options)

Returns: CompilerOptions

**Returns:** `CompilerOptions`
sourceraw docstring

default-format-code-settingscljs

(default-format-code-settings)
(default-format-code-settings new-line-character)

Parameters:

  • new-line-character: string | undefined

Returns: FormatCodeSettings

**Parameters:**
- `new-line-character`: `string | undefined`

**Returns:** `FormatCodeSettings`
sourceraw docstring

default-lib-file-namecljs

(default-lib-file-name options)

Parameters:

  • options: CompilerOptions

Returns: string

**Parameters:**
- `options`: `CompilerOptions`

**Returns:** `string`
sourceraw docstring

default-lib-file-pathcljs

(default-lib-file-path options)

Get the path of the default library files (lib.d.ts) as distributed with the typescript node package. The functionality is not supported if the ts module is consumed outside of a node module.

Parameters:

  • options: CompilerOptions

Returns: string

Get the path of the default library files (lib.d.ts) as distributed with the typescript
node package.
The functionality is not supported if the ts module is consumed outside of a node module.

**Parameters:**
- `options`: `CompilerOptions`

**Returns:** `string`
sourceraw docstring

delete-expression?cljs

(delete-expression? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

display-parts-to-stringcljs

(display-parts-to-string)
(display-parts-to-string display-parts)

Parameters:

  • display-parts: SymbolDisplayPart[] | undefined

Returns: string

**Parameters:**
- `display-parts`: `SymbolDisplayPart[] | undefined`

**Returns:** `string`
sourceraw docstring

dispose-emit-nodescljs

(dispose-emit-nodes)
(dispose-emit-nodes source-file)

Clears any EmitNode entries from parse-tree nodes.

Parameters:

  • source-file: SourceFile | undefined - A source file.

Returns: void

Clears any `EmitNode` entries from parse-tree nodes.

**Parameters:**
- `source-file`: `SourceFile | undefined` - A source file.

**Returns:** `void`
sourceraw docstring

do-statement?cljs

(do-statement? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

dot-dot-dot-token?cljs

(dot-dot-dot-token? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

effective-constraint-of-type-parametercljs

(effective-constraint-of-type-parameter node)

Parameters:

  • node: TypeParameterDeclaration

Returns: TypeNode | undefined

**Parameters:**
- `node`: `TypeParameterDeclaration`

**Returns:** `TypeNode | undefined`
sourceraw docstring

effective-type-parameter-declarationscljs

(effective-type-parameter-declarations node)

Gets the effective type parameters. If the node was parsed in a JavaScript file, gets the type parameters from the @template tag from JSDoc.

This does not return type parameters from a jsdoc reference to a generic type, eg

type Id = <T>(x: T) => T /**

Parameters:

  • node: DeclarationWithTypeParameters

Returns: readonly TypeParameterDeclaration[]

Gets the effective type parameters. If the node was parsed in a
JavaScript file, gets the type parameters from the `@template` tag from JSDoc.

This does *not* return type parameters from a jsdoc reference to a generic type, eg

type Id = <T>(x: T) => T
/**

**Parameters:**
- `node`: `DeclarationWithTypeParameters`

**Returns:** `readonly TypeParameterDeclaration[]`
sourceraw docstring

effective-type-rootscljs

(effective-type-roots options host)

Parameters:

  • options: CompilerOptions
  • host: GetEffectiveTypeRootsHost

Returns: string[] | undefined

**Parameters:**
- `options`: `CompilerOptions`
- `host`: `GetEffectiveTypeRootsHost`

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

element-access-chain?cljs

(element-access-chain? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

element-access-expression?cljs

(element-access-expression? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

emit-helperscljs

(emit-helpers node)

Gets the EmitHelpers of a node.

Parameters:

  • node: Node

Returns: EmitHelper[] | undefined

Gets the EmitHelpers of a node.

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

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

empty-binding-element?cljs

(empty-binding-element? node)

Parameters:

  • node: ArrayBindingElement

Returns: boolean

**Parameters:**
- `node`: `ArrayBindingElement`

**Returns:** `boolean`
sourceraw docstring

empty-binding-pattern?cljs

(empty-binding-pattern? node)

Parameters:

  • node: BindingName

Returns: boolean

**Parameters:**
- `node`: `BindingName`

**Returns:** `boolean`
sourceraw docstring

empty-statement?cljs

(empty-statement? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

entity-name?cljs

(entity-name? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

enum-declaration?cljs

(enum-declaration? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

enum-member?cljs

(enum-member? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

equals-greater-than-token?cljs

(equals-greater-than-token? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

escape-leading-underscorescljs

(escape-leading-underscores identifier)

Add an extra underscore to identifiers that start with two underscores to avoid issues with magic names like 'proto'

Parameters:

  • identifier: string

Returns: __String

Add an extra underscore to identifiers that start with two underscores to avoid issues with magic names like '__proto__'

**Parameters:**
- `identifier`: `string`

**Returns:** `__String`
sourceraw docstring

exclamation-token?cljs

(exclamation-token? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

export-assignment?cljs

(export-assignment? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

export-declaration?cljs

(export-declaration? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

export-specifier?cljs

(export-specifier? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

expression-statement?cljs

(expression-statement? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

expression-with-type-arguments?cljs

(expression-with-type-arguments? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

expression?cljs

(expression? node)

Determines whether a node is an expression based only on its kind.

Parameters:

  • node: Node

Returns: boolean

Determines whether a node is an expression based only on its kind.

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

**Returns:** `boolean`
sourceraw docstring

external-module-name-relative?cljs

(external-module-name-relative? module-name)

Parameters:

  • module-name: string

Returns: boolean

**Parameters:**
- `module-name`: `string`

**Returns:** `boolean`
sourceraw docstring

external-module-reference?cljs

(external-module-reference? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

external-module?cljs

(external-module? file)

Parameters:

  • file: SourceFile

Returns: boolean

**Parameters:**
- `file`: `SourceFile`

**Returns:** `boolean`
sourceraw docstring

factorycljs

(factory)

Returns: NodeFactory

**Returns:** `NodeFactory`
sourceraw docstring

find-ancestorcljs

(find-ancestor)
(find-ancestor node)
(find-ancestor node callback)

Iterates through the parent chain of a node and performs the callback on each parent until the callback returns a truthy value, then returns that value. If no such value is found, it applies the callback until the parent pointer is undefined or the callback returns "quit" At that point findAncestor returns undefined.

Parameters:

  • node: Node | undefined
  • callback: (element: Node) => boolean | "quit"

Returns: Node | undefined

Iterates through the parent chain of a node and performs the callback on each parent until the callback
returns a truthy value, then returns that value.
If no such value is found, it applies the callback until the parent pointer is undefined or the callback returns "quit"
At that point findAncestor returns undefined.

**Parameters:**
- `node`: `Node | undefined`
- `callback`: `(element: Node) => boolean | "quit"`

**Returns:** `Node | undefined`
sourceraw docstring

find-config-filecljs

(find-config-file search-path file-exists)
(find-config-file search-path file-exists config-name)

Parameters:

  • search-path: string
  • file-exists: (fileName: string) => boolean
  • config-name: string | undefined

Returns: string | undefined

**Parameters:**
- `search-path`: `string`
- `file-exists`: `(fileName: string) => boolean`
- `config-name`: `string | undefined`

**Returns:** `string | undefined`
sourceraw docstring

flatten-diagnostic-message-textcljs

(flatten-diagnostic-message-text)
(flatten-diagnostic-message-text diag)
(flatten-diagnostic-message-text diag new-line)
(flatten-diagnostic-message-text diag new-line indent)

Parameters:

  • diag: string | DiagnosticMessageChain | undefined
  • new-line: string
  • indent: number | undefined

Returns: string

**Parameters:**
- `diag`: `string | DiagnosticMessageChain | undefined`
- `new-line`: `string`
- `indent`: `number | undefined`

**Returns:** `string`
sourceraw docstring

for-each-childcljs

(for-each-child node cb-node)
(for-each-child node cb-node cb-nodes)

Invokes a callback for each child of the given node. The 'cbNode' callback is invoked for all child nodes stored in properties. If a 'cbNodes' callback is specified, it is invoked for embedded arrays; otherwise, embedded arrays are flattened and the 'cbNode' callback is invoked for each element. If a callback returns a truthy value, iteration stops and that value is returned. Otherwise, undefined is returned.

Parameters:

  • node: Node - a given node to visit its children
  • cb-node: (node: Node) => T | undefined - a callback to be invoked for all child nodes
  • cb-nodes: ((nodes: NodeArray<Node>) => T | undefined) | undefined - a callback to be invoked for embedded array

Returns: T | undefined

Invokes a callback for each child of the given node. The 'cbNode' callback is invoked for all child nodes
stored in properties. If a 'cbNodes' callback is specified, it is invoked for embedded arrays; otherwise,
embedded arrays are flattened and the 'cbNode' callback is invoked for each element. If a callback returns
a truthy value, iteration stops and that value is returned. Otherwise, undefined is returned.

**Parameters:**
- `node`: `Node` - a given node to visit its children
- `cb-node`: `(node: Node) => T | undefined` - a callback to be invoked for all child nodes
- `cb-nodes`: `((nodes: NodeArray<Node>) => T | undefined) | undefined` - a callback to be invoked for embedded array

**Returns:** `T | undefined`
sourceraw docstring

for-each-leading-comment-rangecljs

(for-each-leading-comment-range text pos cb)
(for-each-leading-comment-range text pos cb state)

Parameters:

  • text: string
  • pos: number
  • cb: (pos: number, end: number, kind: CommentKind, hasTrailingNewLine: boolean, state: T) => U
  • state: T

Returns: U | undefined

**Parameters:**
- `text`: `string`
- `pos`: `number`
- `cb`: `(pos: number, end: number, kind: CommentKind, hasTrailingNewLine: boolean, state: T) => U`
- `state`: `T`

**Returns:** `U | undefined`
sourceraw docstring

for-each-trailing-comment-rangecljs

(for-each-trailing-comment-range text pos cb)
(for-each-trailing-comment-range text pos cb state)

Parameters:

  • text: string
  • pos: number
  • cb: (pos: number, end: number, kind: CommentKind, hasTrailingNewLine: boolean, state: T) => U
  • state: T

Returns: U | undefined

**Parameters:**
- `text`: `string`
- `pos`: `number`
- `cb`: `(pos: number, end: number, kind: CommentKind, hasTrailingNewLine: boolean, state: T) => U`
- `state`: `T`

**Returns:** `U | undefined`
sourceraw docstring

for-in-statement?cljs

(for-in-statement? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

for-initializer?cljs

(for-initializer? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

for-of-statement?cljs

(for-of-statement? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

for-statement?cljs

(for-statement? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

format-diagnosticcljs

(format-diagnostic diagnostic host)

Parameters:

  • diagnostic: Diagnostic
  • host: FormatDiagnosticsHost

Returns: string

**Parameters:**
- `diagnostic`: `Diagnostic`
- `host`: `FormatDiagnosticsHost`

**Returns:** `string`
sourceraw docstring

format-diagnosticscljs

(format-diagnostics diagnostics host)

Parameters:

  • diagnostics: readonly Diagnostic[]
  • host: FormatDiagnosticsHost

Returns: string

**Parameters:**
- `diagnostics`: `readonly Diagnostic[]`
- `host`: `FormatDiagnosticsHost`

**Returns:** `string`
sourceraw docstring

format-diagnostics-with-color-and-contextcljs

(format-diagnostics-with-color-and-context diagnostics host)

Parameters:

  • diagnostics: readonly Diagnostic[]
  • host: FormatDiagnosticsHost

Returns: string

**Parameters:**
- `diagnostics`: `readonly Diagnostic[]`
- `host`: `FormatDiagnosticsHost`

**Returns:** `string`
sourceraw docstring

function-declaration?cljs

(function-declaration? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

function-expression?cljs

(function-expression? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

function-like?cljs

(function-like?)
(function-like? node)

Parameters:

  • node: Node | undefined

Returns: boolean

**Parameters:**
- `node`: `Node | undefined`

**Returns:** `boolean`
sourceraw docstring

function-or-constructor-type-node?cljs

(function-or-constructor-type-node? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

function-type-node?cljs

(function-type-node? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

get-accessor-declaration?cljs

(get-accessor-declaration? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

get-accessor?cljs

(get-accessor? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

has-js-doc-parameter-tags?cljs

(has-js-doc-parameter-tags? node)

Return true if the node has JSDoc parameter tags.

Parameters:

  • node: GetAccessorDeclaration | SetAccessorDeclaration | ArrowFunction | CallSignatureDeclaration | ... 9 more ... | MethodSignature

Returns: boolean

Return true if the node has JSDoc parameter tags.

**Parameters:**
- `node`: `GetAccessorDeclaration | SetAccessorDeclaration | ArrowFunction | CallSignatureDeclaration | ... 9 more ... | MethodSignature`

**Returns:** `boolean`
sourceraw docstring

has-only-expression-initializer?cljs

(has-only-expression-initializer? node)

True if has initializer node attached to it.

Parameters:

  • node: Node

Returns: boolean

True if has initializer node attached to it.

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

**Returns:** `boolean`
sourceraw docstring

has-rest-parameter?cljs

(has-rest-parameter? s)

Parameters:

  • s: JSDocSignature | SignatureDeclaration

Returns: boolean

**Parameters:**
- `s`: `JSDocSignature | SignatureDeclaration`

**Returns:** `boolean`
sourceraw docstring

heritage-clause?cljs

(heritage-clause? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

id-textcljs

(id-text identifier-or-private-name)

Parameters:

  • identifier-or-private-name: Identifier | PrivateIdentifier

Returns: string

**Parameters:**
- `identifier-or-private-name`: `Identifier | PrivateIdentifier`

**Returns:** `string`
sourceraw docstring

identifier-or-this-type-node?cljs

(identifier-or-this-type-node? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

identifier-part?cljs

(identifier-part? ch)
(identifier-part? ch language-version)
(identifier-part? ch language-version identifier-variant)

Parameters:

  • ch: number
  • language-version: ScriptTarget | undefined
  • identifier-variant: LanguageVariant | undefined

Returns: boolean

**Parameters:**
- `ch`: `number`
- `language-version`: `ScriptTarget | undefined`
- `identifier-variant`: `LanguageVariant | undefined`

**Returns:** `boolean`
sourceraw docstring

identifier-start?cljs

(identifier-start? ch)
(identifier-start? ch language-version)

Parameters:

  • ch: number
  • language-version: ScriptTarget | undefined

Returns: boolean

**Parameters:**
- `ch`: `number`
- `language-version`: `ScriptTarget | undefined`

**Returns:** `boolean`
sourceraw docstring

identifier-to-keyword-kindcljs

(identifier-to-keyword-kind node)

If the text of an Identifier matches a keyword (including contextual and TypeScript-specific keywords), returns the SyntaxKind for the matching keyword.

Parameters:

  • node: Identifier

Returns: KeywordSyntaxKind | undefined

If the text of an Identifier matches a keyword (including contextual and TypeScript-specific keywords), returns the
SyntaxKind for the matching keyword.

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

**Returns:** `KeywordSyntaxKind | undefined`
sourceraw docstring

identifier?cljs

(identifier? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

if-statement?cljs

(if-statement? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

implied-node-format-for-filecljs

(implied-node-format-for-file file-name)
(implied-node-format-for-file file-name package-json-info-cache)
(implied-node-format-for-file file-name package-json-info-cache host)
(implied-node-format-for-file file-name package-json-info-cache host options)

A function for determining if a given file is esm or cjs format, assuming modern node module resolution rules, as configured by the options parameter.

Parameters:

  • file-name: string - The file name to check the format of (it need not exist on disk)
  • package-json-info-cache: PackageJsonInfoCache | undefined - A cache for package file lookups - it's best to have a cache when this function is called often
  • host: ModuleResolutionHost - The ModuleResolutionHost which can perform the filesystem lookups for package json data
  • options: CompilerOptions - The compiler options to perform the analysis under - relevant options are moduleResolution and traceResolution

Returns: ResolutionMode - undefined if the path has no relevant implied format, ModuleKind.ESNext for esm format, and ModuleKind.CommonJS for cjs format

A function for determining if a given file is esm or cjs format, assuming modern node module resolution rules, as configured by the
`options` parameter.

**Parameters:**
- `file-name`: `string` - The file name to check the format of (it need not exist on disk)
- `package-json-info-cache`: `PackageJsonInfoCache | undefined` - A cache for package file lookups - it's best to have a cache when this function is called often
- `host`: `ModuleResolutionHost` - The ModuleResolutionHost which can perform the filesystem lookups for package json data
- `options`: `CompilerOptions` - The compiler options to perform the analysis under - relevant options are `moduleResolution` and `traceResolution`

**Returns:** `ResolutionMode` - `undefined` if the path has no relevant implied format, `ModuleKind.ESNext` for esm format, and `ModuleKind.CommonJS` for cjs format
sourceraw docstring

import-attribute-name?cljs

(import-attribute-name? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

import-attribute?cljs

(import-attribute? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

import-attributes?cljs

(import-attributes? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

import-clause?cljs

(import-clause? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

import-declaration?cljs

(import-declaration? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

import-equals-declaration?cljs

(import-equals-declaration? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

import-or-export-specifier?cljs

(import-or-export-specifier? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

import-specifier?cljs

(import-specifier? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

import-type-assertion-container?cljs

(import-type-assertion-container? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

import-type-node?cljs

(import-type-node? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

index-signature-declaration?cljs

(index-signature-declaration? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

indexed-access-type-node?cljs

(indexed-access-type-node? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

infer-type-node?cljs

(infer-type-node? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

interface-declaration?cljs

(interface-declaration? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

internal-declaration?cljs

(internal-declaration? node)
(internal-declaration? node source-file)

Parameters:

  • node: Node
  • source-file: SourceFile | undefined

Returns: boolean

**Parameters:**
- `node`: `Node`
- `source-file`: `SourceFile | undefined`

**Returns:** `boolean`
sourceraw docstring

intersection-type-node?cljs

(intersection-type-node? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

iteration-statement?cljs

(iteration-statement? node look-in-labeled-statements)
(iteration-statement? node look-in-labeled-statements?)

Parameters:

  • node: Node
  • look-in-labeled-statements: false
  • look-in-labeled-statements?: boolean

Returns: boolean

**Parameters:**
- `node`: `Node`
- `look-in-labeled-statements`: `false`
- `look-in-labeled-statements?`: `boolean`

**Returns:** `boolean`
sourceraw docstring

js-doc-all-type?cljs

(js-doc-all-type? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

js-doc-augments-tagcljs

(js-doc-augments-tag node)

Gets the JSDoc augments tag for the node if present

Parameters:

  • node: Node

Returns: JSDocAugmentsTag | undefined

Gets the JSDoc augments tag for the node if present

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

**Returns:** `JSDocAugmentsTag | undefined`
sourceraw docstring

js-doc-augments-tag?cljs

(js-doc-augments-tag? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

js-doc-author-tag?cljs

(js-doc-author-tag? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

js-doc-callback-tag?cljs

(js-doc-callback-tag? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

js-doc-class-tagcljs

(js-doc-class-tag node)

Gets the JSDoc class tag for the node if present

Parameters:

  • node: Node

Returns: JSDocClassTag | undefined

Gets the JSDoc class tag for the node if present

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

**Returns:** `JSDocClassTag | undefined`
sourceraw docstring

js-doc-class-tag?cljs

(js-doc-class-tag? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

js-doc-comment-containing-node?cljs

(js-doc-comment-containing-node? node)

True if node is of a kind that may contain comment text.

Parameters:

  • node: Node

Returns: boolean

True if node is of a kind that may contain comment text.

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

**Returns:** `boolean`
sourceraw docstring

js-doc-comments-and-tagscljs

(js-doc-comments-and-tags host-node)

This function checks multiple locations for JSDoc comments that apply to a host node. At each location, the whole comment may apply to the node, or only a specific tag in the comment. In the first case, location adds the entire {@link JSDoc } object. In the second case, it adds the applicable {@link JSDocTag }.

For example, a JSDoc comment before a parameter adds the entire {@link JSDoc }. But a @param tag on the parent function only adds the {@link JSDocTag } for the @param.

/** JSDoc will be returned for `a` *\/
const a = 0
/**
 * Entire JSDoc will be returned for `b`
 *

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

**Returns:** `readonly (JSDocTag | JSDoc)[]`
This function checks multiple locations for JSDoc comments that apply to a host node.
At each location, the whole comment may apply to the node, or only a specific tag in
the comment. In the first case, location adds the entire {@link JSDoc } object. In the
second case, it adds the applicable {@link JSDocTag }.

For example, a JSDoc comment before a parameter adds the entire {@link JSDoc }. But a
`@param` tag on the parent function only adds the {@link JSDocTag } for the `@param`.

```ts
/** JSDoc will be returned for `a` *\/
const a = 0
/**
 * Entire JSDoc will be returned for `b`
 *

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

**Returns:** `readonly (JSDocTag | JSDoc)[]`
sourceraw docstring

js-doc-deprecated-tagcljs

(js-doc-deprecated-tag node)

Gets the JSDoc deprecated tag for the node if present

Parameters:

  • node: Node

Returns: JSDocDeprecatedTag | undefined

Gets the JSDoc deprecated tag for the node if present

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

**Returns:** `JSDocDeprecatedTag | undefined`
sourceraw docstring

js-doc-deprecated-tag?cljs

(js-doc-deprecated-tag? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

js-doc-enum-tagcljs

(js-doc-enum-tag node)

Gets the JSDoc enum tag for the node if present

Parameters:

  • node: Node

Returns: JSDocEnumTag | undefined

Gets the JSDoc enum tag for the node if present

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

**Returns:** `JSDocEnumTag | undefined`
sourceraw docstring

js-doc-enum-tag?cljs

(js-doc-enum-tag? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

js-doc-function-type?cljs

(js-doc-function-type? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

js-doc-implements-tag?cljs

(js-doc-implements-tag? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

js-doc-implements-tagscljs

(js-doc-implements-tags node)

Gets the JSDoc implements tags for the node if present

Parameters:

  • node: Node

Returns: readonly JSDocImplementsTag[]

Gets the JSDoc implements tags for the node if present

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

**Returns:** `readonly JSDocImplementsTag[]`
sourceraw docstring

(js-doc-link-code? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

(js-doc-link-like? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

(js-doc-link-plain? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

js-doc-link?cljs

(js-doc-link? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

js-doc-member-name?cljs

(js-doc-member-name? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

js-doc-name-reference?cljs

(js-doc-name-reference? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

js-doc-namepath-type?cljs

(js-doc-namepath-type? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

js-doc-non-nullable-type?cljs

(js-doc-non-nullable-type? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

js-doc-nullable-type?cljs

(js-doc-nullable-type? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

js-doc-optional-type?cljs

(js-doc-optional-type? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

js-doc-overload-tag?cljs

(js-doc-overload-tag? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

js-doc-override-tag-no-cachecljs

(js-doc-override-tag-no-cache node)

Parameters:

  • node: Node

Returns: JSDocOverrideTag | undefined

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

**Returns:** `JSDocOverrideTag | undefined`
sourceraw docstring

js-doc-override-tag?cljs

(js-doc-override-tag? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

js-doc-parameter-tag?cljs

(js-doc-parameter-tag? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

js-doc-parameter-tagscljs

(js-doc-parameter-tags param)

Gets the JSDoc parameter tags for the node if present.

Parameters:

  • param: ParameterDeclaration

Returns: readonly JSDocParameterTag[]

Gets the JSDoc parameter tags for the node if present.

**Parameters:**
- `param`: `ParameterDeclaration`

**Returns:** `readonly JSDocParameterTag[]`
sourceraw docstring

js-doc-private-tagcljs

(js-doc-private-tag node)

Gets the JSDoc private tag for the node if present

Parameters:

  • node: Node

Returns: JSDocPrivateTag | undefined

Gets the JSDoc private tag for the node if present

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

**Returns:** `JSDocPrivateTag | undefined`
sourceraw docstring

js-doc-private-tag?cljs

(js-doc-private-tag? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

js-doc-property-like-tag?cljs

(js-doc-property-like-tag? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

js-doc-property-tag?cljs

(js-doc-property-tag? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

js-doc-protected-tagcljs

(js-doc-protected-tag node)

Gets the JSDoc protected tag for the node if present

Parameters:

  • node: Node

Returns: JSDocProtectedTag | undefined

Gets the JSDoc protected tag for the node if present

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

**Returns:** `JSDocProtectedTag | undefined`
sourceraw docstring

js-doc-protected-tag?cljs

(js-doc-protected-tag? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

js-doc-public-tagcljs

(js-doc-public-tag node)

Gets the JSDoc public tag for the node if present

Parameters:

  • node: Node

Returns: JSDocPublicTag | undefined

Gets the JSDoc public tag for the node if present

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

**Returns:** `JSDocPublicTag | undefined`
sourceraw docstring

js-doc-public-tag?cljs

(js-doc-public-tag? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

js-doc-readonly-tagcljs

(js-doc-readonly-tag node)

Gets the JSDoc protected tag for the node if present

Parameters:

  • node: Node

Returns: JSDocReadonlyTag | undefined

Gets the JSDoc protected tag for the node if present

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

**Returns:** `JSDocReadonlyTag | undefined`
sourceraw docstring

js-doc-readonly-tag?cljs

(js-doc-readonly-tag? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

js-doc-return-tagcljs

(js-doc-return-tag node)

Gets the JSDoc return tag for the node if present

Parameters:

  • node: Node

Returns: JSDocReturnTag | undefined

Gets the JSDoc return tag for the node if present

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

**Returns:** `JSDocReturnTag | undefined`
sourceraw docstring

js-doc-return-tag?cljs

(js-doc-return-tag? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

js-doc-return-typecljs

(js-doc-return-type node)

Gets the return type node for the node if provided via JSDoc return tag or type tag.

Parameters:

  • node: Node

Returns: TypeNode | undefined

Gets the return type node for the node if provided via JSDoc return tag or type tag.

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

**Returns:** `TypeNode | undefined`
sourceraw docstring

js-doc-satisfies-tagcljs

(js-doc-satisfies-tag node)

Parameters:

  • node: Node

Returns: JSDocSatisfiesTag | undefined

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

**Returns:** `JSDocSatisfiesTag | undefined`
sourceraw docstring

js-doc-satisfies-tag?cljs

(js-doc-satisfies-tag? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

js-doc-see-tag?cljs

(js-doc-see-tag? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

js-doc-signature?cljs

(js-doc-signature? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

js-doc-tagscljs

(js-doc-tags node)

Get all JSDoc tags related to a node, including those on parent nodes.

Parameters:

  • node: Node

Returns: readonly JSDocTag[]

Get all JSDoc tags related to a node, including those on parent nodes.

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

**Returns:** `readonly JSDocTag[]`
sourceraw docstring

js-doc-template-tagcljs

(js-doc-template-tag node)

Gets the JSDoc template tag for the node if present

Parameters:

  • node: Node

Returns: JSDocTemplateTag | undefined

Gets the JSDoc template tag for the node if present

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

**Returns:** `JSDocTemplateTag | undefined`
sourceraw docstring

js-doc-template-tag?cljs

(js-doc-template-tag? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

js-doc-this-tagcljs

(js-doc-this-tag node)

Gets the JSDoc this tag for the node if present

Parameters:

  • node: Node

Returns: JSDocThisTag | undefined

Gets the JSDoc this tag for the node if present

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

**Returns:** `JSDocThisTag | undefined`
sourceraw docstring

js-doc-this-tag?cljs

(js-doc-this-tag? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

js-doc-throws-tag?cljs

(js-doc-throws-tag? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

js-doc-typecljs

(js-doc-type node)

Gets the type node for the node if provided via JSDoc.

Parameters:

  • node: Node

Returns: TypeNode | undefined

Gets the type node for the node if provided via JSDoc.

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

**Returns:** `TypeNode | undefined`
sourceraw docstring

js-doc-type-expression?cljs

(js-doc-type-expression? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

js-doc-type-literal?cljs

(js-doc-type-literal? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

js-doc-type-parameter-tagscljs

(js-doc-type-parameter-tags param)

Gets the JSDoc type parameter tags for the node if present.

Parameters:

  • param: TypeParameterDeclaration

Returns: readonly JSDocTemplateTag[]

Gets the JSDoc type parameter tags for the node if present.

**Parameters:**
- `param`: `TypeParameterDeclaration`

**Returns:** `readonly JSDocTemplateTag[]`
sourceraw docstring

js-doc-type-tagcljs

(js-doc-type-tag node)

Gets the JSDoc type tag for the node if present and valid

Parameters:

  • node: Node

Returns: JSDocTypeTag | undefined

Gets the JSDoc type tag for the node if present and valid

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

**Returns:** `JSDocTypeTag | undefined`
sourceraw docstring

js-doc-type-tag?cljs

(js-doc-type-tag? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

js-doc-typedef-tag?cljs

(js-doc-typedef-tag? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

js-doc-unknown-tag?cljs

(js-doc-unknown-tag? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

js-doc-unknown-type?cljs

(js-doc-unknown-type? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

js-doc-variadic-type?cljs

(js-doc-variadic-type? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

js-doc?cljs

(js-doc? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

jsx-attribute-like?cljs

(jsx-attribute-like? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

jsx-attribute?cljs

(jsx-attribute? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

jsx-attributes?cljs

(jsx-attributes? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

jsx-child?cljs

(jsx-child? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

jsx-closing-element?cljs

(jsx-closing-element? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

jsx-closing-fragment?cljs

(jsx-closing-fragment? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

jsx-element?cljs

(jsx-element? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

jsx-expression?cljs

(jsx-expression? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

jsx-fragment?cljs

(jsx-fragment? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

jsx-namespaced-name?cljs

(jsx-namespaced-name? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

jsx-opening-element?cljs

(jsx-opening-element? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

jsx-opening-fragment?cljs

(jsx-opening-fragment? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

jsx-opening-like-element?cljs

(jsx-opening-like-element? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

jsx-self-closing-element?cljs

(jsx-self-closing-element? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

jsx-spread-attribute?cljs

(jsx-spread-attribute? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

jsx-tag-name-expression?cljs

(jsx-tag-name-expression? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

jsx-text?cljs

(jsx-text? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

labeled-statement?cljs

(labeled-statement? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

leading-comment-rangescljs

(leading-comment-ranges text pos)

Parameters:

  • text: string
  • pos: number

Returns: CommentRange[] | undefined

**Parameters:**
- `text`: `string`
- `pos`: `number`

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

left-hand-side-expression?cljs

(left-hand-side-expression? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

line-and-character-of-positioncljs

(line-and-character-of-position source-file position)

Parameters:

  • source-file: SourceFileLike
  • position: number

Returns: LineAndCharacter

**Parameters:**
- `source-file`: `SourceFileLike`
- `position`: `number`

**Returns:** `LineAndCharacter`
sourceraw docstring

line-break?cljs

(line-break? ch)

Parameters:

  • ch: number

Returns: boolean

**Parameters:**
- `ch`: `number`

**Returns:** `boolean`
sourceraw docstring

literal-expression?cljs

(literal-expression? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

literal-type-literal?cljs

(literal-type-literal? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

literal-type-node?cljs

(literal-type-node? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

mapped-type-node?cljs

(mapped-type-node? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

member-name?cljs

(member-name? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

meta-property?cljs

(meta-property? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

method-declaration?cljs

(method-declaration? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

method-signature?cljs

(method-signature? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

minus-token?cljs

(minus-token? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

missing-declaration?cljs

(missing-declaration? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

mode-for-file-referencecljs

(mode-for-file-reference ref)
(mode-for-file-reference ref containing-file-mode)

Calculates the resulting resolution mode for some reference in some file - this is generally the explicitly provided resolution mode in the reference, unless one is not present, in which case it is the mode of the containing file.

Parameters:

  • ref: string | FileReference
  • containing-file-mode: ResolutionMode

Returns: ResolutionMode

Calculates the resulting resolution mode for some reference in some file - this is generally the explicitly
provided resolution mode in the reference, unless one is not present, in which case it is the mode of the containing file.

**Parameters:**
- `ref`: `string | FileReference`
- `containing-file-mode`: `ResolutionMode`

**Returns:** `ResolutionMode`
sourceraw docstring

mode-for-resolution-at-indexcljs

(mode-for-resolution-at-index file index compiler-options)

Use program.getModeForResolutionAtIndex, which retrieves the correct compilerOptions, instead of this function whenever possible. Calculates the final resolution mode for an import at some index within a file's imports list. This is the resolution mode explicitly provided via import attributes, if present, or the syntax the usage would have if emitted to JavaScript. In --module node16 or nodenext, this may depend on the file's impliedNodeFormat. In --module preserve, it depends only on the input syntax of the reference. In other module modes, when overriding import attributes are not provided, this function returns undefined, as the result would have no impact on module resolution, emit, or type checking.

Parameters:

  • file: SourceFile - File to fetch the resolution mode within
  • index: number - Index into the file's complete resolution list to get the resolution of - this is a concatenation of the file's imports and module augmentations
  • compiler-options: CompilerOptions - The compiler options for the program that owns the file. If the file belongs to a referenced project, the compiler options should be the options of the referenced project, not the referencing project.

Returns: ResolutionMode

Use `program.getModeForResolutionAtIndex`, which retrieves the correct `compilerOptions`, instead of this function whenever possible.
Calculates the final resolution mode for an import at some index within a file's `imports` list. This is the resolution mode
explicitly provided via import attributes, if present, or the syntax the usage would have if emitted to JavaScript. In
`--module node16` or `nodenext`, this may depend on the file's `impliedNodeFormat`. In `--module preserve`, it depends only on the
input syntax of the reference. In other `module` modes, when overriding import attributes are not provided, this function returns
`undefined`, as the result would have no impact on module resolution, emit, or type checking.

**Parameters:**
- `file`: `SourceFile` - File to fetch the resolution mode within
- `index`: `number` - Index into the file's complete resolution list to get the resolution of - this is a concatenation of the file's imports and module augmentations
- `compiler-options`: `CompilerOptions` - The compiler options for the program that owns the file. If the file belongs to a referenced project, the compiler options
should be the options of the referenced project, not the referencing project.

**Returns:** `ResolutionMode`
sourceraw docstring

mode-for-usage-locationcljs

(mode-for-usage-location file usage compiler-options)

Use program.getModeForUsageLocation, which retrieves the correct compilerOptions, instead of this function whenever possible. Calculates the final resolution mode for a given module reference node. This is the resolution mode explicitly provided via import attributes, if present, or the syntax the usage would have if emitted to JavaScript. In --module node16 or nodenext, this may depend on the file's impliedNodeFormat. In --module preserve, it depends only on the input syntax of the reference. In other module modes, when overriding import attributes are not provided, this function returns undefined, as the result would have no impact on module resolution, emit, or type checking.

Parameters:

  • file: { impliedNodeFormat?: ResolutionMode; } - The file the import or import-like reference is contained within
  • usage: StringLiteralLike - The module reference string
  • compiler-options: CompilerOptions - The compiler options for the program that owns the file. If the file belongs to a referenced project, the compiler options should be the options of the referenced project, not the referencing project.

Returns: ModuleKind.CommonJS | ModuleKind.ESNext | undefined - The final resolution mode of the import

Use `program.getModeForUsageLocation`, which retrieves the correct `compilerOptions`, instead of this function whenever possible.
Calculates the final resolution mode for a given module reference node. This is the resolution mode explicitly provided via import
attributes, if present, or the syntax the usage would have if emitted to JavaScript. In `--module node16` or `nodenext`, this may
depend on the file's `impliedNodeFormat`. In `--module preserve`, it depends only on the input syntax of the reference. In other
`module` modes, when overriding import attributes are not provided, this function returns `undefined`, as the result would have no
impact on module resolution, emit, or type checking.

**Parameters:**
- `file`: `{ impliedNodeFormat?: ResolutionMode; }` - The file the import or import-like reference is contained within
- `usage`: `StringLiteralLike` - The module reference string
- `compiler-options`: `CompilerOptions` - The compiler options for the program that owns the file. If the file belongs to a referenced project, the compiler options
should be the options of the referenced project, not the referencing project.

**Returns:** `ModuleKind.CommonJS | ModuleKind.ESNext | undefined` - The final resolution mode of the import
sourceraw docstring

modifier-like?cljs

(modifier-like? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

modifier?cljs

(modifier? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

modifierscljs

(modifiers node)

Parameters:

  • node: HasModifiers

Returns: readonly Modifier[] | undefined

**Parameters:**
- `node`: `HasModifiers`

**Returns:** `readonly Modifier[] | undefined`
sourceraw docstring

module-block?cljs

(module-block? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

module-body?cljs

(module-body? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

module-declaration?cljs

(module-declaration? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

module-name?cljs

(module-name? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

module-reference?cljs

(module-reference? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

move-emit-helperscljs

(move-emit-helpers source target predicate)

Moves matching emit helpers from a source node to a target node.

Parameters:

  • source: Node
  • target: Node
  • predicate: (helper: EmitHelper) => boolean

Returns: void

Moves matching emit helpers from a source node to a target node.

**Parameters:**
- `source`: `Node`
- `target`: `Node`
- `predicate`: `(helper: EmitHelper) => boolean`

**Returns:** `void`
sourceraw docstring

move-synthetic-commentscljs

(move-synthetic-comments node original)

Parameters:

  • node: T
  • original: Node

Returns: T

**Parameters:**
- `node`: `T`
- `original`: `Node`

**Returns:** `T`
sourceraw docstring

name-of-declarationcljs

(name-of-declaration)
(name-of-declaration declaration)

Parameters:

  • declaration: Declaration | Expression | undefined

Returns: DeclarationName | undefined

**Parameters:**
- `declaration`: `Declaration | Expression | undefined`

**Returns:** `DeclarationName | undefined`
sourceraw docstring

name-of-js-doc-typedefcljs

(name-of-js-doc-typedef declaration)

Parameters:

  • declaration: JSDocTypedefTag

Returns: Identifier | PrivateIdentifier | undefined

**Parameters:**
- `declaration`: `JSDocTypedefTag`

**Returns:** `Identifier | PrivateIdentifier | undefined`
sourceraw docstring

named-export-bindings?cljs

(named-export-bindings? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

named-exports?cljs

(named-exports? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

named-import-bindings?cljs

(named-import-bindings? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

named-imports?cljs

(named-imports? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

named-tuple-member?cljs

(named-tuple-member? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

namespace-export-declaration?cljs

(namespace-export-declaration? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

namespace-export?cljs

(namespace-export? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

namespace-import?cljs

(namespace-import? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

new-expression?cljs

(new-expression? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

no-substitution-template-literal?cljs

(no-substitution-template-literal? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

node-module-name-resolvercljs

(node-module-name-resolver module-name containing-file compiler-options host)
(node-module-name-resolver module-name
                           containing-file
                           compiler-options
                           host
                           cache)
(node-module-name-resolver module-name
                           containing-file
                           compiler-options
                           host
                           cache
                           redirected-reference)

Parameters:

  • module-name: string
  • containing-file: string
  • compiler-options: CompilerOptions
  • host: ModuleResolutionHost
  • cache: ModuleResolutionCache | undefined
  • redirected-reference: ResolvedProjectReference | undefined

Returns: ResolvedModuleWithFailedLookupLocations

**Parameters:**
- `module-name`: `string`
- `containing-file`: `string`
- `compiler-options`: `CompilerOptions`
- `host`: `ModuleResolutionHost`
- `cache`: `ModuleResolutionCache | undefined`
- `redirected-reference`: `ResolvedProjectReference | undefined`

**Returns:** `ResolvedModuleWithFailedLookupLocations`
sourceraw docstring

non-null-chain?cljs

(non-null-chain? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

non-null-expression?cljs

(non-null-expression? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

not-emitted-statement?cljs

(not-emitted-statement? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

nullish-coalesce?cljs

(nullish-coalesce? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

numeric-literal?cljs

(numeric-literal? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

object-binding-pattern?cljs

(object-binding-pattern? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

object-literal-element-like?cljs

(object-literal-element-like? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

object-literal-element?cljs

(object-literal-element? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

object-literal-expression?cljs

(object-literal-expression? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

omitted-expression?cljs

(omitted-expression? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

optional-chain?cljs

(optional-chain? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

optional-type-node?cljs

(optional-type-node? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

original-nodecljs

(original-node)
(original-node node)
(original-node node node-test)

Parameters:

  • node: Node | undefined
  • node-test: (node: Node) => node is T

Returns: T | undefined

**Parameters:**
- `node`: `Node | undefined`
- `node-test`: `(node: Node) => node is T`

**Returns:** `T | undefined`
sourceraw docstring

output-file-namescljs

(output-file-names command-line input-file-name ignore-case?)

Parameters:

  • command-line: ParsedCommandLine
  • input-file-name: string
  • ignore-case?: boolean

Returns: readonly string[]

**Parameters:**
- `command-line`: `ParsedCommandLine`
- `input-file-name`: `string`
- `ignore-case?`: `boolean`

**Returns:** `readonly string[]`
sourceraw docstring

parameter-property-declaration?cljs

(parameter-property-declaration? node parent)

Parameters:

  • node: Node
  • parent: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

parameter?cljs

(parameter? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

parenthesized-expression?cljs

(parenthesized-expression? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

parenthesized-type-node?cljs

(parenthesized-type-node? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

parse-command-linecljs

(parse-command-line command-line)
(parse-command-line command-line read-file)

Parameters:

  • command-line: readonly string[]
  • read-file: ((path: string) => string | undefined) | undefined

Returns: ParsedCommandLine

**Parameters:**
- `command-line`: `readonly string[]`
- `read-file`: `((path: string) => string | undefined) | undefined`

**Returns:** `ParsedCommandLine`
sourceraw docstring

parse-config-file-text-to-jsoncljs

(parse-config-file-text-to-json file-name json-text)

Parse the text of the tsconfig.json file

Parameters:

  • file-name: string - The path to the config file
  • json-text: string - The text of the config file

Returns: { config?: any; error?: Diagnostic | undefined; }

Parse the text of the tsconfig.json file

**Parameters:**
- `file-name`: `string` - The path to the config file
- `json-text`: `string` - The text of the config file

**Returns:** `{ config?: any; error?: Diagnostic | undefined; }`
sourceraw docstring

parse-isolated-entity-namecljs

(parse-isolated-entity-name text language-version)

Parameters:

  • text: string
  • language-version: ScriptTarget

Returns: EntityName | undefined

**Parameters:**
- `text`: `string`
- `language-version`: `ScriptTarget`

**Returns:** `EntityName | undefined`
sourceraw docstring

parse-json-config-file-contentcljs

(parse-json-config-file-content json host base-path)
(parse-json-config-file-content json host base-path existing-options)
(parse-json-config-file-content json
                                host
                                base-path
                                existing-options
                                config-file-name)
(parse-json-config-file-content json
                                host
                                base-path
                                existing-options
                                config-file-name
                                resolution-stack)
(parse-json-config-file-content json
                                host
                                base-path
                                existing-options
                                config-file-name
                                resolution-stack
                                extra-file-extensions)
(parse-json-config-file-content json
                                host
                                base-path
                                existing-options
                                config-file-name
                                resolution-stack
                                extra-file-extensions
                                extended-config-cache)
(parse-json-config-file-content json
                                host
                                base-path
                                existing-options
                                config-file-name
                                resolution-stack
                                extra-file-extensions
                                extended-config-cache
                                existing-watch-options)

Parse the contents of a config file (tsconfig.json).

Parameters:

  • json: any - The contents of the config file to parse
  • host: ParseConfigHost - Instance of ParseConfigHost used to enumerate files in folder.
  • base-path: string - A root directory to resolve relative path entries in the config file to. e.g. outDir
  • existing-options: CompilerOptions | undefined
  • config-file-name: string | undefined
  • resolution-stack: Path[] | undefined
  • extra-file-extensions: readonly FileExtensionInfo[] | undefined
  • extended-config-cache: any
  • existing-watch-options: WatchOptions | undefined

Returns: ParsedCommandLine

Parse the contents of a config file (tsconfig.json).

**Parameters:**
- `json`: `any` - The contents of the config file to parse
- `host`: `ParseConfigHost` - Instance of ParseConfigHost used to enumerate files in folder.
- `base-path`: `string` - A root directory to resolve relative path entries in the config
file to. e.g. outDir
- `existing-options`: `CompilerOptions | undefined`
- `config-file-name`: `string | undefined`
- `resolution-stack`: `Path[] | undefined`
- `extra-file-extensions`: `readonly FileExtensionInfo[] | undefined`
- `extended-config-cache`: `any`
- `existing-watch-options`: `WatchOptions | undefined`

**Returns:** `ParsedCommandLine`
sourceraw docstring

parse-json-source-file-config-file-contentcljs

(parse-json-source-file-config-file-content source-file host base-path)
(parse-json-source-file-config-file-content source-file
                                            host
                                            base-path
                                            existing-options)
(parse-json-source-file-config-file-content source-file
                                            host
                                            base-path
                                            existing-options
                                            config-file-name)
(parse-json-source-file-config-file-content source-file
                                            host
                                            base-path
                                            existing-options
                                            config-file-name
                                            resolution-stack)
(parse-json-source-file-config-file-content source-file
                                            host
                                            base-path
                                            existing-options
                                            config-file-name
                                            resolution-stack
                                            extra-file-extensions)
(parse-json-source-file-config-file-content source-file
                                            host
                                            base-path
                                            existing-options
                                            config-file-name
                                            resolution-stack
                                            extra-file-extensions
                                            extended-config-cache)
(parse-json-source-file-config-file-content source-file
                                            host
                                            base-path
                                            existing-options
                                            config-file-name
                                            resolution-stack
                                            extra-file-extensions
                                            extended-config-cache
                                            existing-watch-options)

Parse the contents of a config file (tsconfig.json).

Parameters:

  • source-file: TsConfigSourceFile
  • host: ParseConfigHost - Instance of ParseConfigHost used to enumerate files in folder.
  • base-path: string - A root directory to resolve relative path entries in the config file to. e.g. outDir
  • existing-options: CompilerOptions | undefined
  • config-file-name: string | undefined
  • resolution-stack: Path[] | undefined
  • extra-file-extensions: readonly FileExtensionInfo[] | undefined
  • extended-config-cache: any
  • existing-watch-options: WatchOptions | undefined

Returns: ParsedCommandLine

Parse the contents of a config file (tsconfig.json).

**Parameters:**
- `source-file`: `TsConfigSourceFile`
- `host`: `ParseConfigHost` - Instance of ParseConfigHost used to enumerate files in folder.
- `base-path`: `string` - A root directory to resolve relative path entries in the config
file to. e.g. outDir
- `existing-options`: `CompilerOptions | undefined`
- `config-file-name`: `string | undefined`
- `resolution-stack`: `Path[] | undefined`
- `extra-file-extensions`: `readonly FileExtensionInfo[] | undefined`
- `extended-config-cache`: `any`
- `existing-watch-options`: `WatchOptions | undefined`

**Returns:** `ParsedCommandLine`
sourceraw docstring

parse-json-textcljs

(parse-json-text file-name source-text)

Parse json text into SyntaxTree and return node and parse errors if any

Parameters:

  • file-name: string
  • source-text: string

Returns: JsonSourceFile

Parse json text into SyntaxTree and return node and parse errors if any

**Parameters:**
- `file-name`: `string`
- `source-text`: `string`

**Returns:** `JsonSourceFile`
sourceraw docstring

parse-tree-nodecljs

(parse-tree-node)
(parse-tree-node node)
(parse-tree-node node node-test)

Gets the original parse tree node for a node.

Parameters:

  • node: T | undefined - The original node.
  • node-test: ((node: Node) => node is T) | undefined - A callback used to ensure the correct type of parse tree node is returned.

Returns: T | undefined - The original parse tree node if found; otherwise, undefined.

Gets the original parse tree node for a node.

**Parameters:**
- `node`: `T | undefined` - The original node.
- `node-test`: `((node: Node) => node is T) | undefined` - A callback used to ensure the correct type of parse tree node is returned.

**Returns:** `T | undefined` - The original parse tree node if found; otherwise, undefined.
sourceraw docstring

parse-tree-node?cljs

(parse-tree-node? node)

Gets a value indicating whether a node originated in the parse tree.

Parameters:

  • node: Node - The node to test.

Returns: boolean

Gets a value indicating whether a node originated in the parse tree.

**Parameters:**
- `node`: `Node` - The node to test.

**Returns:** `boolean`
sourceraw docstring

parsed-command-line-of-config-filecljs

(parsed-command-line-of-config-file config-file-name)
(parsed-command-line-of-config-file config-file-name options-to-extend)
(parsed-command-line-of-config-file config-file-name options-to-extend host)
(parsed-command-line-of-config-file config-file-name
                                    options-to-extend
                                    host
                                    extended-config-cache)
(parsed-command-line-of-config-file config-file-name
                                    options-to-extend
                                    host
                                    extended-config-cache
                                    watch-options-to-extend)
(parsed-command-line-of-config-file config-file-name
                                    options-to-extend
                                    host
                                    extended-config-cache
                                    watch-options-to-extend
                                    extra-file-extensions)

Reads the config file, reports errors if any and exits if the config file cannot be found

Parameters:

  • config-file-name: string
  • options-to-extend: CompilerOptions | undefined
  • host: ParseConfigFileHost
  • extended-config-cache: any
  • watch-options-to-extend: WatchOptions | undefined
  • extra-file-extensions: readonly FileExtensionInfo[] | undefined

Returns: ParsedCommandLine | undefined

Reads the config file, reports errors if any and exits if the config file cannot be found

**Parameters:**
- `config-file-name`: `string`
- `options-to-extend`: `CompilerOptions | undefined`
- `host`: `ParseConfigFileHost`
- `extended-config-cache`: `any`
- `watch-options-to-extend`: `WatchOptions | undefined`
- `extra-file-extensions`: `readonly FileExtensionInfo[] | undefined`

**Returns:** `ParsedCommandLine | undefined`
sourceraw docstring

part-of-type-node?cljs

(part-of-type-node? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

partially-emitted-expression?cljs

(partially-emitted-expression? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

plus-token?cljs

(plus-token? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

position-of-line-and-charactercljs

(position-of-line-and-character source-file line character)

Parameters:

  • source-file: SourceFileLike
  • line: number
  • character: number

Returns: number

**Parameters:**
- `source-file`: `SourceFileLike`
- `line`: `number`
- `character`: `number`

**Returns:** `number`
sourceraw docstring

postfix-unary-expression?cljs

(postfix-unary-expression? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

pre-emit-diagnosticscljs

(pre-emit-diagnostics program)
(pre-emit-diagnostics program source-file)
(pre-emit-diagnostics program source-file cancellation-token)

Parameters:

  • program: Program
  • source-file: SourceFile | undefined
  • cancellation-token: CancellationToken | undefined

Returns: readonly Diagnostic[]

**Parameters:**
- `program`: `Program`
- `source-file`: `SourceFile | undefined`
- `cancellation-token`: `CancellationToken | undefined`

**Returns:** `readonly Diagnostic[]`
sourceraw docstring

pre-process-filecljs

(pre-process-file source-text)
(pre-process-file source-text read-import-files?)
(pre-process-file source-text read-import-files? detect-java-script-imports?)

Parameters:

  • source-text: string
  • read-import-files?: boolean | undefined
  • detect-java-script-imports?: boolean | undefined

Returns: PreProcessedFileInfo

**Parameters:**
- `source-text`: `string`
- `read-import-files?`: `boolean | undefined`
- `detect-java-script-imports?`: `boolean | undefined`

**Returns:** `PreProcessedFileInfo`
sourceraw docstring

prefix-unary-expression?cljs

(prefix-unary-expression? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

private-identifier?cljs

(private-identifier? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

property-access-chain?cljs

(property-access-chain? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

property-access-expression?cljs

(property-access-expression? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

property-access-or-qualified-name?cljs

(property-access-or-qualified-name? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

property-assignment?cljs

(property-assignment? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

property-declaration?cljs

(property-declaration? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

property-name?cljs

(property-name? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

property-signature?cljs

(property-signature? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

qualified-name?cljs

(qualified-name? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

question-dot-token?cljs

(question-dot-token? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

question-or-exclamation-token?cljs

(question-or-exclamation-token? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

question-or-plus-or-minus-token?cljs

(question-or-plus-or-minus-token? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

question-token?cljs

(question-token? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

read-builder-programcljs

(read-builder-program compiler-options host)

Parameters:

  • compiler-options: CompilerOptions
  • host: ReadBuildProgramHost

Returns: EmitAndSemanticDiagnosticsBuilderProgram | undefined

**Parameters:**
- `compiler-options`: `CompilerOptions`
- `host`: `ReadBuildProgramHost`

**Returns:** `EmitAndSemanticDiagnosticsBuilderProgram | undefined`
sourceraw docstring

read-config-filecljs

(read-config-file file-name read-file)

Read tsconfig.json file

Parameters:

  • file-name: string - The path to the config file
  • read-file: (path: string) => string | undefined

Returns: { config?: any; error?: Diagnostic | undefined; }

Read tsconfig.json file

**Parameters:**
- `file-name`: `string` - The path to the config file
- `read-file`: `(path: string) => string | undefined`

**Returns:** `{ config?: any; error?: Diagnostic | undefined; }`
sourceraw docstring

read-json-config-filecljs

(read-json-config-file file-name read-file)

Read tsconfig.json file

Parameters:

  • file-name: string - The path to the config file
  • read-file: (path: string) => string | undefined

Returns: TsConfigSourceFile

Read tsconfig.json file

**Parameters:**
- `file-name`: `string` - The path to the config file
- `read-file`: `(path: string) => string | undefined`

**Returns:** `TsConfigSourceFile`
sourceraw docstring

readonly-keyword-or-plus-or-minus-token?cljs

(readonly-keyword-or-plus-or-minus-token? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

reduce-each-leading-comment-rangecljs

(reduce-each-leading-comment-range text pos cb state initial)

Parameters:

  • text: string
  • pos: number
  • cb: (pos: number, end: number, kind: CommentKind, hasTrailingNewLine: boolean, state: T) => U
  • state: T
  • initial: U

Returns: U | undefined

**Parameters:**
- `text`: `string`
- `pos`: `number`
- `cb`: `(pos: number, end: number, kind: CommentKind, hasTrailingNewLine: boolean, state: T) => U`
- `state`: `T`
- `initial`: `U`

**Returns:** `U | undefined`
sourceraw docstring

reduce-each-trailing-comment-rangecljs

(reduce-each-trailing-comment-range text pos cb state initial)

Parameters:

  • text: string
  • pos: number
  • cb: (pos: number, end: number, kind: CommentKind, hasTrailingNewLine: boolean, state: T) => U
  • state: T
  • initial: U

Returns: U | undefined

**Parameters:**
- `text`: `string`
- `pos`: `number`
- `cb`: `(pos: number, end: number, kind: CommentKind, hasTrailingNewLine: boolean, state: T) => U`
- `state`: `T`
- `initial`: `U`

**Returns:** `U | undefined`
sourceraw docstring

regular-expression-literal?cljs

(regular-expression-literal? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

remove-emit-helper?cljs

(remove-emit-helper? node helper)

Removes an EmitHelper from a node.

Parameters:

  • node: Node
  • helper: EmitHelper

Returns: boolean

Removes an EmitHelper from a node.

**Parameters:**
- `node`: `Node`
- `helper`: `EmitHelper`

**Returns:** `boolean`
sourceraw docstring

resolve-module-namecljs

(resolve-module-name module-name containing-file compiler-options host)
(resolve-module-name module-name containing-file compiler-options host cache)
(resolve-module-name module-name
                     containing-file
                     compiler-options
                     host
                     cache
                     redirected-reference)
(resolve-module-name module-name
                     containing-file
                     compiler-options
                     host
                     cache
                     redirected-reference
                     resolution-mode)

Parameters:

  • module-name: string
  • containing-file: string
  • compiler-options: CompilerOptions
  • host: ModuleResolutionHost
  • cache: ModuleResolutionCache | undefined
  • redirected-reference: ResolvedProjectReference | undefined
  • resolution-mode: ResolutionMode

Returns: ResolvedModuleWithFailedLookupLocations

**Parameters:**
- `module-name`: `string`
- `containing-file`: `string`
- `compiler-options`: `CompilerOptions`
- `host`: `ModuleResolutionHost`
- `cache`: `ModuleResolutionCache | undefined`
- `redirected-reference`: `ResolvedProjectReference | undefined`
- `resolution-mode`: `ResolutionMode`

**Returns:** `ResolvedModuleWithFailedLookupLocations`
sourceraw docstring

resolve-module-name-from-cachecljs

(resolve-module-name-from-cache module-name containing-file cache)
(resolve-module-name-from-cache module-name containing-file cache mode)

Parameters:

  • module-name: string
  • containing-file: string
  • cache: ModuleResolutionCache
  • mode: ResolutionMode

Returns: ResolvedModuleWithFailedLookupLocations | undefined

**Parameters:**
- `module-name`: `string`
- `containing-file`: `string`
- `cache`: `ModuleResolutionCache`
- `mode`: `ResolutionMode`

**Returns:** `ResolvedModuleWithFailedLookupLocations | undefined`
sourceraw docstring

resolve-project-reference-pathcljs

(resolve-project-reference-path ref)

Returns the target config filename of a project reference. Note: The file might not exist.

Parameters:

  • ref: ProjectReference

Returns: ResolvedConfigFileName

Returns the target config filename of a project reference.
Note: The file might not exist.

**Parameters:**
- `ref`: `ProjectReference`

**Returns:** `ResolvedConfigFileName`
sourceraw docstring

resolve-tripleslash-referencecljs

(resolve-tripleslash-reference module-name containing-file)

Parameters:

  • module-name: string
  • containing-file: string

Returns: string

**Parameters:**
- `module-name`: `string`
- `containing-file`: `string`

**Returns:** `string`
sourceraw docstring

resolve-type-reference-directivecljs

(resolve-type-reference-directive type-reference-directive-name)
(resolve-type-reference-directive type-reference-directive-name containing-file)
(resolve-type-reference-directive type-reference-directive-name
                                  containing-file
                                  options)
(resolve-type-reference-directive type-reference-directive-name
                                  containing-file
                                  options
                                  host)
(resolve-type-reference-directive type-reference-directive-name
                                  containing-file
                                  options
                                  host
                                  redirected-reference)
(resolve-type-reference-directive type-reference-directive-name
                                  containing-file
                                  options
                                  host
                                  redirected-reference
                                  cache)
(resolve-type-reference-directive type-reference-directive-name
                                  containing-file
                                  options
                                  host
                                  redirected-reference
                                  cache
                                  resolution-mode)

Parameters:

  • type-reference-directive-name: string
  • containing-file: string | undefined - - file that contains type reference directive, can be undefined if containing file is unknown. This is possible in case if resolution is performed for directives specified via 'types' parameter. In this case initial path for secondary lookups is assumed to be the same as root directory of the project.
  • options: CompilerOptions
  • host: ModuleResolutionHost
  • redirected-reference: ResolvedProjectReference | undefined
  • cache: TypeReferenceDirectiveResolutionCache | undefined
  • resolution-mode: ResolutionMode

Returns: ResolvedTypeReferenceDirectiveWithFailedLookupLocations

**Parameters:**
- `type-reference-directive-name`: `string`
- `containing-file`: `string | undefined` - - file that contains type reference directive, can be undefined if containing file is unknown.
This is possible in case if resolution is performed for directives specified via 'types' parameter. In this case initial path for secondary lookups
is assumed to be the same as root directory of the project.
- `options`: `CompilerOptions`
- `host`: `ModuleResolutionHost`
- `redirected-reference`: `ResolvedProjectReference | undefined`
- `cache`: `TypeReferenceDirectiveResolutionCache | undefined`
- `resolution-mode`: `ResolutionMode`

**Returns:** `ResolvedTypeReferenceDirectiveWithFailedLookupLocations`
sourceraw docstring

rest-parameter?cljs

(rest-parameter? node)

Parameters:

  • node: ParameterDeclaration | JSDocParameterTag

Returns: boolean

**Parameters:**
- `node`: `ParameterDeclaration | JSDocParameterTag`

**Returns:** `boolean`
sourceraw docstring

rest-type-node?cljs

(rest-type-node? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

return-statement?cljs

(return-statement? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

satisfies-expression?cljs

(satisfies-expression? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

semicolon-class-element?cljs

(semicolon-class-element? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

services-versioncljs

(services-version)

The version of the language service API

Returns: "0.8"

The version of the language service API

**Returns:** `"0.8"`
sourceraw docstring

set-accessor-declaration?cljs

(set-accessor-declaration? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

set-accessor?cljs

(set-accessor? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

set-comment-rangecljs

(set-comment-range node range)

Sets a custom text range to use when emitting comments.

Parameters:

  • node: T
  • range: TextRange

Returns: T

Sets a custom text range to use when emitting comments.

**Parameters:**
- `node`: `T`
- `range`: `TextRange`

**Returns:** `T`
sourceraw docstring

set-constant-valuecljs

(set-constant-value node value)

Sets the constant value to emit for an expression.

Parameters:

  • node: AccessExpression
  • value: string | number

Returns: AccessExpression

Sets the constant value to emit for an expression.

**Parameters:**
- `node`: `AccessExpression`
- `value`: `string | number`

**Returns:** `AccessExpression`
sourceraw docstring

set-emit-flagscljs

(set-emit-flags node emit-flags)

Sets flags that control emit behavior of a node.

Parameters:

  • node: T
  • emit-flags: EmitFlags

Returns: T

Sets flags that control emit behavior of a node.

**Parameters:**
- `node`: `T`
- `emit-flags`: `EmitFlags`

**Returns:** `T`
sourceraw docstring

set-original-nodecljs

(set-original-node node)
(set-original-node node original)

Parameters:

  • node: T
  • original: Node | undefined

Returns: T

**Parameters:**
- `node`: `T`
- `original`: `Node | undefined`

**Returns:** `T`
sourceraw docstring

set-source-map-rangecljs

(set-source-map-range node)
(set-source-map-range node range)

Sets a custom text range to use when emitting source maps.

Parameters:

  • node: T
  • range: SourceMapRange | undefined

Returns: T

Sets a custom text range to use when emitting source maps.

**Parameters:**
- `node`: `T`
- `range`: `SourceMapRange | undefined`

**Returns:** `T`
sourceraw docstring

set-synthetic-leading-commentscljs

(set-synthetic-leading-comments node)
(set-synthetic-leading-comments node comments)

Parameters:

  • node: T
  • comments: SynthesizedComment[] | undefined

Returns: T

**Parameters:**
- `node`: `T`
- `comments`: `SynthesizedComment[] | undefined`

**Returns:** `T`
sourceraw docstring

set-synthetic-trailing-commentscljs

(set-synthetic-trailing-comments node)
(set-synthetic-trailing-comments node comments)

Parameters:

  • node: T
  • comments: SynthesizedComment[] | undefined

Returns: T

**Parameters:**
- `node`: `T`
- `comments`: `SynthesizedComment[] | undefined`

**Returns:** `T`
sourceraw docstring

set-text-rangecljs

(set-text-range range)
(set-text-range range location)

Parameters:

  • range: T
  • location: TextRange | undefined

Returns: T

**Parameters:**
- `range`: `T`
- `location`: `TextRange | undefined`

**Returns:** `T`
sourceraw docstring

set-token-source-map-rangecljs

(set-token-source-map-range node token)
(set-token-source-map-range node token range)

Sets the TextRange to use for source maps for a token of a node.

Parameters:

  • node: T
  • token: SyntaxKind
  • range: SourceMapRange | undefined

Returns: T

Sets the TextRange to use for source maps for a token of a node.

**Parameters:**
- `node`: `T`
- `token`: `SyntaxKind`
- `range`: `SourceMapRange | undefined`

**Returns:** `T`
sourceraw docstring

shebangcljs

(shebang text)

Optionally, get the shebang

Parameters:

  • text: string

Returns: string | undefined

Optionally, get the shebang

**Parameters:**
- `text`: `string`

**Returns:** `string | undefined`
sourceraw docstring

shorthand-property-assignment?cljs

(shorthand-property-assignment? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

skip-partially-emitted-expressionscljs

(skip-partially-emitted-expressions node)

Parameters:

  • node: Node

Returns: Node

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

**Returns:** `Node`
sourceraw docstring

sort-and-deduplicate-diagnosticscljs

(sort-and-deduplicate-diagnostics diagnostics)

Parameters:

  • diagnostics: readonly T[]

Returns: SortedReadonlyArray<T>

**Parameters:**
- `diagnostics`: `readonly T[]`

**Returns:** `SortedReadonlyArray<T>`
sourceraw docstring

source-file?cljs

(source-file? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

source-map-rangecljs

(source-map-range node)

Gets a custom text range to use when emitting source maps.

Parameters:

  • node: Node

Returns: SourceMapRange

Gets a custom text range to use when emitting source maps.

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

**Returns:** `SourceMapRange`
sourceraw docstring

spread-assignment?cljs

(spread-assignment? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

spread-element?cljs

(spread-element? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

statement?cljs

(statement? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

string-literal-like?cljs

(string-literal-like? node)

Parameters:

  • node: Node | FileReference

Returns: boolean

**Parameters:**
- `node`: `Node | FileReference`

**Returns:** `boolean`
sourceraw docstring

string-literal-or-jsx-expression?cljs

(string-literal-or-jsx-expression? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

string-literal?cljs

(string-literal? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

string-text-containing-node?cljs

(string-text-containing-node? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

supported-code-fixescljs

(supported-code-fixes)

Returns: readonly string[]

**Returns:** `readonly string[]`
sourceraw docstring

switch-statement?cljs

(switch-statement? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

symbol-namecljs

(symbol-name symbol)

Parameters:

  • symbol: Symbol

Returns: string

**Parameters:**
- `symbol`: `Symbol`

**Returns:** `string`
sourceraw docstring

synthetic-expression?cljs

(synthetic-expression? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

synthetic-leading-commentscljs

(synthetic-leading-comments node)

Parameters:

  • node: Node

Returns: SynthesizedComment[] | undefined

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

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

synthetic-trailing-commentscljs

(synthetic-trailing-comments node)

Parameters:

  • node: Node

Returns: SynthesizedComment[] | undefined

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

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

syscljs

(sys)

Returns: System

**Returns:** `System`
sourceraw docstring

tagged-template-expression?cljs

(tagged-template-expression? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

template-expression?cljs

(template-expression? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

template-head?cljs

(template-head? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

template-literal-token?cljs

(template-literal-token? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

template-literal-type-node?cljs

(template-literal-type-node? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

template-literal-type-span?cljs

(template-literal-type-span? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

template-literal?cljs

(template-literal? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

template-middle-or-template-tail?cljs

(template-middle-or-template-tail? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

template-middle?cljs

(template-middle? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

template-span?cljs

(template-span? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

template-tail?cljs

(template-tail? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

text-change-range-is-unchanged?cljs

(text-change-range-is-unchanged? range)

Parameters:

  • range: TextChangeRange

Returns: boolean

**Parameters:**
- `range`: `TextChangeRange`

**Returns:** `boolean`
sourceraw docstring

text-change-range-new-spancljs

(text-change-range-new-span range)

Parameters:

  • range: TextChangeRange

Returns: TextSpan

**Parameters:**
- `range`: `TextChangeRange`

**Returns:** `TextSpan`
sourceraw docstring

text-of-js-doc-commentcljs

(text-of-js-doc-comment)
(text-of-js-doc-comment comment)

Gets the text of a jsdoc comment, flattening links to their text.

Parameters:

  • comment: string | NodeArray<JSDocComment> | undefined

Returns: string | undefined

Gets the text of a jsdoc comment, flattening links to their text.

**Parameters:**
- `comment`: `string | NodeArray<JSDocComment> | undefined`

**Returns:** `string | undefined`
sourceraw docstring

text-span-contains-position?cljs

(text-span-contains-position? span position)

Parameters:

  • span: TextSpan
  • position: number

Returns: boolean

**Parameters:**
- `span`: `TextSpan`
- `position`: `number`

**Returns:** `boolean`
sourceraw docstring

text-span-contains-text-span?cljs

(text-span-contains-text-span? span other)

Parameters:

  • span: TextSpan
  • other: TextSpan

Returns: boolean

**Parameters:**
- `span`: `TextSpan`
- `other`: `TextSpan`

**Returns:** `boolean`
sourceraw docstring

text-span-endcljs

(text-span-end span)

Parameters:

  • span: TextSpan

Returns: number

**Parameters:**
- `span`: `TextSpan`

**Returns:** `number`
sourceraw docstring

text-span-intersectioncljs

(text-span-intersection span-1 span-2)

Parameters:

  • span-1: TextSpan
  • span-2: TextSpan

Returns: TextSpan | undefined

**Parameters:**
- `span-1`: `TextSpan`
- `span-2`: `TextSpan`

**Returns:** `TextSpan | undefined`
sourceraw docstring

text-span-intersects-with-position?cljs

(text-span-intersects-with-position? span position)

Parameters:

  • span: TextSpan
  • position: number

Returns: boolean

**Parameters:**
- `span`: `TextSpan`
- `position`: `number`

**Returns:** `boolean`
sourceraw docstring

text-span-intersects-with-text-span?cljs

(text-span-intersects-with-text-span? span other)

Parameters:

  • span: TextSpan
  • other: TextSpan

Returns: boolean

**Parameters:**
- `span`: `TextSpan`
- `other`: `TextSpan`

**Returns:** `boolean`
sourceraw docstring

text-span-intersects-with?cljs

(text-span-intersects-with? span start length)

Parameters:

  • span: TextSpan
  • start: number
  • length: number

Returns: boolean

**Parameters:**
- `span`: `TextSpan`
- `start`: `number`
- `length`: `number`

**Returns:** `boolean`
sourceraw docstring

text-span-is-empty?cljs

(text-span-is-empty? span)

Parameters:

  • span: TextSpan

Returns: boolean

**Parameters:**
- `span`: `TextSpan`

**Returns:** `boolean`
sourceraw docstring

text-span-overlapcljs

(text-span-overlap span-1 span-2)

Parameters:

  • span-1: TextSpan
  • span-2: TextSpan

Returns: TextSpan | undefined

**Parameters:**
- `span-1`: `TextSpan`
- `span-2`: `TextSpan`

**Returns:** `TextSpan | undefined`
sourceraw docstring

text-span-overlaps-with?cljs

(text-span-overlaps-with? span other)

Parameters:

  • span: TextSpan
  • other: TextSpan

Returns: boolean

**Parameters:**
- `span`: `TextSpan`
- `other`: `TextSpan`

**Returns:** `boolean`
sourceraw docstring

this-type-node?cljs

(this-type-node? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

throw-statement?cljs

(throw-statement? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

to-editor-settingscljs

(to-editor-settings options)

Parameters:

  • options: EditorSettings | EditorOptions

Returns: EditorSettings

**Parameters:**
- `options`: `EditorSettings | EditorOptions`

**Returns:** `EditorSettings`
sourceraw docstring

token-kind?cljs

(token-kind? kind)

True if kind is of some token syntax kind. For example, this is true for an IfKeyword but not for an IfStatement. Literals are considered tokens, except TemplateLiteral, but does include TemplateHead/Middle/Tail.

Parameters:

  • kind: SyntaxKind

Returns: boolean

True if kind is of some token syntax kind.
For example, this is true for an IfKeyword but not for an IfStatement.
Literals are considered tokens, except TemplateLiteral, but does include TemplateHead/Middle/Tail.

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

**Returns:** `boolean`
sourceraw docstring

token-source-map-rangecljs

(token-source-map-range node token)

Gets the TextRange to use for source maps for a token of a node.

Parameters:

  • node: Node
  • token: SyntaxKind

Returns: SourceMapRange | undefined

Gets the TextRange to use for source maps for a token of a node.

**Parameters:**
- `node`: `Node`
- `token`: `SyntaxKind`

**Returns:** `SourceMapRange | undefined`
sourceraw docstring

token-to-stringcljs

(token-to-string t)

Parameters:

  • t: SyntaxKind

Returns: string | undefined

**Parameters:**
- `t`: `SyntaxKind`

**Returns:** `string | undefined`
sourceraw docstring

token?cljs

(token? n)

True if node is of some token syntax kind. For example, this is true for an IfKeyword but not for an IfStatement. Literals are considered tokens, except TemplateLiteral, but does include TemplateHead/Middle/Tail.

Parameters:

  • n: Node

Returns: boolean

True if node is of some token syntax kind.
For example, this is true for an IfKeyword but not for an IfStatement.
Literals are considered tokens, except TemplateLiteral, but does include TemplateHead/Middle/Tail.

**Parameters:**
- `n`: `Node`

**Returns:** `boolean`
sourceraw docstring

trailing-comment-rangescljs

(trailing-comment-ranges text pos)

Parameters:

  • text: string
  • pos: number

Returns: CommentRange[] | undefined

**Parameters:**
- `text`: `string`
- `pos`: `number`

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

transformcljs

(transform source transformers)
(transform source transformers compiler-options)

Transform one or more nodes using the supplied transformers.

Parameters:

  • source: T | T[] - A single Node or an array of Node objects.
  • transformers: TransformerFactory<T>[] - An array of TransformerFactory callbacks used to process the transformation.
  • compiler-options: CompilerOptions | undefined - Optional compiler options.

Returns: TransformationResult<T>

Transform one or more nodes using the supplied transformers.

**Parameters:**
- `source`: `T | T[]` - A single `Node` or an array of `Node` objects.
- `transformers`: `TransformerFactory<T>[]` - An array of `TransformerFactory` callbacks used to process the transformation.
- `compiler-options`: `CompilerOptions | undefined` - Optional compiler options.

**Returns:** `TransformationResult<T>`
sourceraw docstring

transpilecljs

(transpile input)
(transpile input compiler-options)
(transpile input compiler-options file-name)
(transpile input compiler-options file-name diagnostics)
(transpile input compiler-options file-name diagnostics module-name)

Parameters:

  • input: string
  • compiler-options: CompilerOptions | undefined
  • file-name: string | undefined
  • diagnostics: Diagnostic[] | undefined
  • module-name: string | undefined

Returns: string

**Parameters:**
- `input`: `string`
- `compiler-options`: `CompilerOptions | undefined`
- `file-name`: `string | undefined`
- `diagnostics`: `Diagnostic[] | undefined`
- `module-name`: `string | undefined`

**Returns:** `string`
sourceraw docstring

transpile-modulecljs

(transpile-module input transpile-options)

Parameters:

  • input: string
  • transpile-options: TranspileOptions

Returns: TranspileOutput

**Parameters:**
- `input`: `string`
- `transpile-options`: `TranspileOptions`

**Returns:** `TranspileOutput`
sourceraw docstring

try-statement?cljs

(try-statement? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

ts-build-info-emit-output-file-pathcljs

(ts-build-info-emit-output-file-path options)

Parameters:

  • options: CompilerOptions

Returns: string | undefined

**Parameters:**
- `options`: `CompilerOptions`

**Returns:** `string | undefined`
sourceraw docstring

tuple-type-node?cljs

(tuple-type-node? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

type-alias-declaration?cljs

(type-alias-declaration? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

type-assertion-expression?cljs

(type-assertion-expression? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

type-element?cljs

(type-element? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

type-literal-node?cljs

(type-literal-node? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

type-node?cljs

(type-node? node)

Node test that determines whether a node is a valid type node. This differs from the isPartOfTypeNode function which determines whether a node is part of a TypeNode.

Parameters:

  • node: Node

Returns: boolean

Node test that determines whether a node is a valid type node.
This differs from the `isPartOfTypeNode` function which determines whether a node is *part*
of a TypeNode.

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

**Returns:** `boolean`
sourceraw docstring

type-of-expression?cljs

(type-of-expression? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

type-only-export-declaration?cljs

(type-only-export-declaration? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

type-only-import-declaration?cljs

(type-only-import-declaration? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

type-only-import-or-export-declaration?cljs

(type-only-import-or-export-declaration? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

type-operator-node?cljs

(type-operator-node? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

type-parameter-declaration?cljs

(type-parameter-declaration? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

type-parameter-ownercljs

(type-parameter-owner d)

Parameters:

  • d: Declaration

Returns: Declaration | undefined

**Parameters:**
- `d`: `Declaration`

**Returns:** `Declaration | undefined`
sourceraw docstring

type-predicate-node?cljs

(type-predicate-node? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

type-query-node?cljs

(type-query-node? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

type-reference-node?cljs

(type-reference-node? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

unchanged-text-change-rangecljs

(unchanged-text-change-range)

Returns: TextChangeRange

**Returns:** `TextChangeRange`
sourceraw docstring

unescape-leading-underscorescljs

(unescape-leading-underscores identifier)

Remove extra underscore from escaped identifier text content.

Parameters:

  • identifier: __String - The escaped identifier text.

Returns: string - The unescaped identifier text.

Remove extra underscore from escaped identifier text content.

**Parameters:**
- `identifier`: `__String` - The escaped identifier text.

**Returns:** `string` - The unescaped identifier text.
sourceraw docstring

union-type-node?cljs

(union-type-node? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

unparsed-node?cljs

(unparsed-node? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

unparsed-prepend?cljs

(unparsed-prepend? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

unparsed-source?cljs

(unparsed-source? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

unparsed-text-like?cljs

(unparsed-text-like? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

update-language-service-source-filecljs

(update-language-service-source-file source-file script-snapshot version)
(update-language-service-source-file source-file
                                     script-snapshot
                                     version
                                     text-change-range)
(update-language-service-source-file source-file
                                     script-snapshot
                                     version
                                     text-change-range
                                     aggressive-checks?)

Parameters:

  • source-file: SourceFile
  • script-snapshot: IScriptSnapshot
  • version: string
  • text-change-range: TextChangeRange | undefined
  • aggressive-checks?: boolean | undefined

Returns: SourceFile

**Parameters:**
- `source-file`: `SourceFile`
- `script-snapshot`: `IScriptSnapshot`
- `version`: `string`
- `text-change-range`: `TextChangeRange | undefined`
- `aggressive-checks?`: `boolean | undefined`

**Returns:** `SourceFile`
sourceraw docstring

update-source-filecljs

(update-source-file source-file new-text text-change-range)
(update-source-file source-file new-text text-change-range aggressive-checks?)

Parameters:

  • source-file: SourceFile
  • new-text: string
  • text-change-range: TextChangeRange
  • aggressive-checks?: boolean | undefined

Returns: SourceFile

**Parameters:**
- `source-file`: `SourceFile`
- `new-text`: `string`
- `text-change-range`: `TextChangeRange`
- `aggressive-checks?`: `boolean | undefined`

**Returns:** `SourceFile`
sourceraw docstring

validate-locale-and-set-languagecljs

(validate-locale-and-set-language locale sys)
(validate-locale-and-set-language locale sys errors)

Checks to see if the locale is in the appropriate format, and if it is, attempts to set the appropriate language.

Parameters:

  • locale: string
  • sys: { getExecutingFilePath(): string; resolvePath(path: string): string; fileExists(fileName: string): boolean; readFile(fileName: string): string | undefined; }
  • errors: Diagnostic[] | undefined

Returns: void

Checks to see if the locale is in the appropriate format,
and if it is, attempts to set the appropriate language.

**Parameters:**
- `locale`: `string`
- `sys`: `{ getExecutingFilePath(): string; resolvePath(path: string): string; fileExists(fileName: string): boolean; readFile(fileName: string): string | undefined; }`
- `errors`: `Diagnostic[] | undefined`

**Returns:** `void`
sourceraw docstring

variable-declaration-list?cljs

(variable-declaration-list? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

variable-declaration?cljs

(variable-declaration? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

variable-statement?cljs

(variable-statement? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

versioncljs

(version)

The version of the TypeScript compiler release

Returns: string

The version of the TypeScript compiler release

**Returns:** `string`
sourceraw docstring

version-major-minorcljs

(version-major-minor)

Returns: "5.4"

**Returns:** `"5.4"`
sourceraw docstring

visit-comma-list-elementscljs

(visit-comma-list-elements elements visitor)
(visit-comma-list-elements elements visitor discard-visitor)

Visits the elements of a {@link CommaListExpression }.

Parameters:

  • elements: NodeArray<Expression>
  • visitor: Visitor<Node, Node | undefined> - The visitor to use when visiting expressions whose result will not be discarded at runtime.
  • discard-visitor: Visitor<Node, Node | undefined> | undefined - The visitor to use when visiting expressions whose result will be discarded at runtime. Defaults to {@link visitor }.

Returns: NodeArray<Expression>

Visits the elements of a {@link CommaListExpression }.

**Parameters:**
- `elements`: `NodeArray<Expression>`
- `visitor`: `Visitor<Node, Node | undefined>` - The visitor to use when visiting expressions whose result will not be discarded at runtime.
- `discard-visitor`: `Visitor<Node, Node | undefined> | undefined` - The visitor to use when visiting expressions whose result will be discarded at runtime. Defaults to {@link visitor }.

**Returns:** `NodeArray<Expression>`
sourceraw docstring

visit-each-childcljs

(visit-each-child)
(visit-each-child node)
(visit-each-child node visitor)
(visit-each-child node visitor context)
(visit-each-child node visitor context nodes-visitor)
(visit-each-child node visitor context nodes-visitor token-visitor)

Visits each child of a Node using the supplied visitor, possibly returning a new Node of the same kind in its place.

Parameters:

  • node: T | undefined - The Node whose children will be visited.
  • visitor: Visitor<Node, Node | undefined> - The callback used to visit each child.
  • context: TransformationContext | undefined - A lexical environment context for the visitor.
  • nodes-visitor: { <TIn extends Node, TInArray extends NodeArray<TIn> | undefined, TOut extends Node>(nodes: TInArray, visitor: Visitor<TIn, Node | undefined>, test: (node: Node) => node is TOut, start?: number | undefined, count?: number | undefined): NodeArray<...> | (TInArray & undefined); <TIn extends Node, TInArray extends Node...
  • token-visitor: Visitor<Node, Node | undefined> | undefined

Returns: T | undefined

Visits each child of a Node using the supplied visitor, possibly returning a new Node of the same kind in its place.

**Parameters:**
- `node`: `T | undefined` - The Node whose children will be visited.
- `visitor`: `Visitor<Node, Node | undefined>` - The callback used to visit each child.
- `context`: `TransformationContext | undefined` - A lexical environment context for the visitor.
- `nodes-visitor`: `{ <TIn extends Node, TInArray extends NodeArray<TIn> | undefined, TOut extends Node>(nodes: TInArray, visitor: Visitor<TIn, Node | undefined>, test: (node: Node) => node is TOut, start?: number | undefined, count?: number | undefined): NodeArray<...> | (TInArray & undefined); <TIn extends Node, TInArray extends Node...`
- `token-visitor`: `Visitor<Node, Node | undefined> | undefined`

**Returns:** `T | undefined`
sourceraw docstring

visit-function-bodycljs

(visit-function-body)
(visit-function-body node)
(visit-function-body node visitor)
(visit-function-body node visitor context)

Resumes a suspended lexical environment and visits a function body, ending the lexical environment and merging hoisted declarations upon completion. Resumes a suspended lexical environment and visits a concise body, ending the lexical environment and merging hoisted declarations upon completion.

Parameters:

  • node: ConciseBody
  • visitor: Visitor<Node, Node | undefined>
  • context: TransformationContext

Returns: ConciseBody

Resumes a suspended lexical environment and visits a function body, ending the lexical
environment and merging hoisted declarations upon completion.
Resumes a suspended lexical environment and visits a concise body, ending the lexical
environment and merging hoisted declarations upon completion.

**Parameters:**
- `node`: `ConciseBody`
- `visitor`: `Visitor<Node, Node | undefined>`
- `context`: `TransformationContext`

**Returns:** `ConciseBody`
sourceraw docstring

visit-iteration-bodycljs

(visit-iteration-body body visitor context)

Visits an iteration body, adding any block-scoped variables required by the transformation.

Parameters:

  • body: Statement
  • visitor: Visitor<Node, Node | undefined>
  • context: TransformationContext

Returns: Statement

Visits an iteration body, adding any block-scoped variables required by the transformation.

**Parameters:**
- `body`: `Statement`
- `visitor`: `Visitor<Node, Node | undefined>`
- `context`: `TransformationContext`

**Returns:** `Statement`
sourceraw docstring

visit-lexical-environmentcljs

(visit-lexical-environment statements visitor context)
(visit-lexical-environment statements visitor context start)
(visit-lexical-environment statements visitor context start ensure-use-strict?)
(visit-lexical-environment statements
                           visitor
                           context
                           start
                           ensure-use-strict?
                           nodes-visitor)

Starts a new lexical environment and visits a statement list, ending the lexical environment and merging hoisted declarations upon completion.

Parameters:

  • statements: NodeArray<Statement>
  • visitor: Visitor<Node, Node | undefined>
  • context: TransformationContext
  • start: number | undefined
  • ensure-use-strict?: boolean | undefined
  • nodes-visitor: NodesVisitor | undefined

Returns: NodeArray<Statement>

Starts a new lexical environment and visits a statement list, ending the lexical environment
and merging hoisted declarations upon completion.

**Parameters:**
- `statements`: `NodeArray<Statement>`
- `visitor`: `Visitor<Node, Node | undefined>`
- `context`: `TransformationContext`
- `start`: `number | undefined`
- `ensure-use-strict?`: `boolean | undefined`
- `nodes-visitor`: `NodesVisitor | undefined`

**Returns:** `NodeArray<Statement>`
sourceraw docstring

visit-nodecljs

(visit-node node visitor)
(visit-node node visitor test)
(visit-node node visitor test lift)

Visits a Node using the supplied visitor, possibly returning a new Node in its place.

  • If the input node is undefined, then the output is undefined.
  • If the visitor returns undefined, then the output is undefined.
  • If the output node is not undefined, then it will satisfy the test function.
  • In order to obtain a return type that is more specific than Node, a test function must be provided, and that function must be a type predicate.

Parameters:

  • node: TIn - The Node to visit.
  • visitor: Visitor<NonNullable<TIn>, TVisited> - The callback used to visit the Node.
  • test: ((node: Node) => boolean) | undefined - A callback to execute to verify the Node is valid.
  • lift: ((node: readonly Node[]) => Node) | undefined - An optional callback to execute to lift a NodeArray into a valid Node.

Returns: Node | (TIn & undefined) | (TVisited & undefined)

Visits a Node using the supplied visitor, possibly returning a new Node in its place.

- If the input node is undefined, then the output is undefined.
- If the visitor returns undefined, then the output is undefined.
- If the output node is not undefined, then it will satisfy the test function.
- In order to obtain a return type that is more specific than `Node`, a test
  function _must_ be provided, and that function must be a type predicate.

**Parameters:**
- `node`: `TIn` - The Node to visit.
- `visitor`: `Visitor<NonNullable<TIn>, TVisited>` - The callback used to visit the Node.
- `test`: `((node: Node) => boolean) | undefined` - A callback to execute to verify the Node is valid.
- `lift`: `((node: readonly Node[]) => Node) | undefined` - An optional callback to execute to lift a NodeArray into a valid Node.

**Returns:** `Node | (TIn & undefined) | (TVisited & undefined)`
sourceraw docstring

visit-nodescljs

(visit-nodes nodes visitor)
(visit-nodes nodes visitor test)
(visit-nodes nodes visitor test start)
(visit-nodes nodes visitor test start count)

Visits a NodeArray using the supplied visitor, possibly returning a new NodeArray in its place.

  • If the input node array is undefined, the output is undefined.
  • If the visitor can return undefined, the node it visits in the array will be reused.
  • If the output node array is not undefined, then its contents will satisfy the test.
  • In order to obtain a return type that is more specific than NodeArray<Node>, a test function must be provided, and that function must be a type predicate.

Parameters:

  • nodes: TInArray - The NodeArray to visit.
  • visitor: Visitor<TIn, Node | undefined> - The callback used to visit a Node.
  • test: ((node: Node) => boolean) | undefined - A node test to execute for each node.
  • start: number | undefined - An optional value indicating the starting offset at which to start visiting.
  • count: number | undefined - An optional value indicating the maximum number of nodes to visit.

Returns: NodeArray<Node> | (TInArray & undefined)

Visits a NodeArray using the supplied visitor, possibly returning a new NodeArray in its place.

- If the input node array is undefined, the output is undefined.
- If the visitor can return undefined, the node it visits in the array will be reused.
- If the output node array is not undefined, then its contents will satisfy the test.
- In order to obtain a return type that is more specific than `NodeArray<Node>`, a test
  function _must_ be provided, and that function must be a type predicate.

**Parameters:**
- `nodes`: `TInArray` - The NodeArray to visit.
- `visitor`: `Visitor<TIn, Node | undefined>` - The callback used to visit a Node.
- `test`: `((node: Node) => boolean) | undefined` - A node test to execute for each node.
- `start`: `number | undefined` - An optional value indicating the starting offset at which to start visiting.
- `count`: `number | undefined` - An optional value indicating the maximum number of nodes to visit.

**Returns:** `NodeArray<Node> | (TInArray & undefined)`
sourceraw docstring

visit-parameter-listcljs

(visit-parameter-list)
(visit-parameter-list nodes)
(visit-parameter-list nodes visitor)
(visit-parameter-list nodes visitor context)
(visit-parameter-list nodes visitor context nodes-visitor)

Starts a new lexical environment and visits a parameter list, suspending the lexical environment upon completion.

Parameters:

  • nodes: NodeArray<ParameterDeclaration> | undefined
  • visitor: Visitor<Node, Node | undefined>
  • context: TransformationContext
  • nodes-visitor: NodesVisitor | undefined

Returns: NodeArray<ParameterDeclaration> | undefined

Starts a new lexical environment and visits a parameter list, suspending the lexical
environment upon completion.

**Parameters:**
- `nodes`: `NodeArray<ParameterDeclaration> | undefined`
- `visitor`: `Visitor<Node, Node | undefined>`
- `context`: `TransformationContext`
- `nodes-visitor`: `NodesVisitor | undefined`

**Returns:** `NodeArray<ParameterDeclaration> | undefined`
sourceraw docstring

void-expression?cljs

(void-expression? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

walk-up-binding-elements-and-patternscljs

(walk-up-binding-elements-and-patterns binding)

Parameters:

  • binding: BindingElement

Returns: VariableDeclaration | ParameterDeclaration

**Parameters:**
- `binding`: `BindingElement`

**Returns:** `VariableDeclaration | ParameterDeclaration`
sourceraw docstring

while-statement?cljs

(while-statement? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

white-space-like?cljs

(white-space-like? ch)

Parameters:

  • ch: number

Returns: boolean

**Parameters:**
- `ch`: `number`

**Returns:** `boolean`
sourceraw docstring

white-space-single-line?cljs

(white-space-single-line? ch)

Does not include line breaks. For that, see isWhiteSpaceLike.

Parameters:

  • ch: number

Returns: boolean

Does not include line breaks. For that, see isWhiteSpaceLike.

**Parameters:**
- `ch`: `number`

**Returns:** `boolean`
sourceraw docstring

with-statement?cljs

(with-statement? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

yield-expression?cljs

(yield-expression? node)

Parameters:

  • node: Node

Returns: boolean

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

**Returns:** `boolean`
sourceraw docstring

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

× close