Package-level declarations
Types
Builder to manage the program state changes
Create the program with rootNames and options, if they are undefined, oldProgram and new configFile diagnostics create new program
A linked list of formatted diagnostic messages to be used as part of a multiline message. It is built from the bottom up, leaving the head to be the "main" diagnostic. While it seems that DiagnosticMessageChain is structurally similar to DiagnosticMessage, the difference is that messages are all preformatted in DMC.
The document registry represents a store of SourceFile objects that can be shared between multiple LanguageService instances. A LanguageService instance holds on the SourceFile (AST) of files in the context. SourceFile objects account for most of the memory usage by the language service. Sharing the same DocumentRegistry instance between different instances of LanguageService allow for more efficient memory utilization since all projects will share at least the library file (lib.d.ts).
The builder that can handle the changes in program and iterate through changed file to emit the files The semantic diagnostics are cached per file and managed by clearing for the changed/affected files
Return code used by getEmitOutput function to indicate status of the function
Represents an immutable snapshot of a script at a specified time.Once acquired, the snapshot is observably immutable. i.e. the same calls with the same parameters will return the same values.
Used by services to specify the minimum host area required to set up source files under any compilation settings
A function that walks a node array using the given visitor, returning an array whose contents satisfy the test.
A function that walks a node using the given visitor, lifting node arrays into single nodes, returning an node which satisfies the test.
Parsed command line for build
Branded string for keeping track of when we've turned an ambiguous path specified like "./blah" to an absolute path to an actual tsconfig file, e.g. "/root/blah/tsconfig.json"
The builder that caches the semantic diagnostics for the program and handles the changed files and affected files
A function that transforms a node.
A function that is used to initialize and return a Transformer callback, which in turn will be used to transform one or more nodes.
Host to create watch with config file
Host to create watch with root files and options
Creates the watch what generates program using the config file
Creates the watch that generates program using the root files and compiler options
Properties
The version of the language service API
Functions
Adds an EmitHelper to a node.
Add EmitHelpers to a node.
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.
Convert the json syntax tree into the json value
Creates a builder thats just abstraction over program and can be used with watch
Create a function that reports watch status by writing to the system and handles the formating of the diagnostic
The classifier is used for syntactic highlighting in editors via the TSServer
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
Create the builder to manage semantic diagnostics and cache them
Create an external source map source file reference
Create the watch compiler host for either configFile or fileNames and its options
Creates the watch from the host for config file
Creates the watch from the host for root files and compiler options
Clears any EmitNode entries from parse-tree nodes.
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.
If the text of an Identifier matches a keyword (including contextual and TypeScript-specific keywords), returns the SyntaxKind for the matching keyword.
Returns true if commandline is --build and needs to be parsed useing parseBuildCommand
Moves matching emit helpers from a source node to a target node.
Parse the text of the tsconfig.json file
Parse the contents of a config file (tsconfig.json).
Parse the contents of a config file (tsconfig.json).
Parse json text into SyntaxTree and return node and parse errors if any
Read tsconfig.json file
Read tsconfig.json file
Removes an EmitHelper from a node.
Returns the target config filename of a project reference. Note: The file might not exist.
Sets the constant value to emit for an expression.
Sets a custom text range to use when emitting source maps.
Sets the TextRange to use for source maps for a token of a node.
Transform one or more nodes using the supplied transformers.
Checks to see if the locale is in the appropriate format, and if it is, attempts to set the appropriate language.
Visits the elements of a {@link CommaListExpression}.
Resumes a suspended lexical environment and visits a concise body, ending the lexical environment and merging hoisted declarations upon completion.
Resumes a suspended lexical environment and visits a function body, ending the lexical environment and merging hoisted declarations upon completion.
Visits an iteration body, adding any block-scoped variables required by the transformation.
Starts a new lexical environment and visits a statement list, ending the lexical environment and merging hoisted declarations upon completion.
Starts a new lexical environment and visits a parameter list, suspending the lexical environment upon completion.