Declaration index. Reverse index from a name to many declarations assotiated to the name.
Hash of parsed resources. Contains all parsed files / namespaces / declarations of the current workspace.
List of all declaration information. Contains the typescript declaration and the "from" information (from where the symbol is imported).
Reverse index of the declarations.
Indicator if the first index was loaded and calculated or not.
Tells the index to build a new index. Can be canceled with a cancellationToken.
Creates a reverse index out of the give resources. Can be cancelled with the token.
Checks if a file does export another resource. (i.e. export ... from ...)
The file that is checked
The resource that is searched for
Returns a list of files that export a certain resource (declaration).
Processes an assigned export, does move the declarations accordingly. (i.e. export = namespaceName)
Processes a named export, does move the declarations accordingly. (i.e. export {MyClass} from './myFile')
Is called when file events happen. Does reindex for the changed files and creates a new index. Returns the differences for the new index.
Resets the whole index. Does delete everything. Period. Is useful for unit testing or similar things.
Calculates the differences between two indices. Calculates removed, added and updated declarations. The updated declarations are calculated and all declarations that the new index contains are inserted in the list.
Generated using TypeDoc
Global index of declarations. Contains declarations and origins. Provides reverse index for search and declaration info for imports.
DeclarationIndex