import { DocumentRegistry } from "https://deno.land/x/ts_morph@18.0.0/common/ts_morph_common.d.ts";
An implementation of a ts.DocumentRegistry that uses a transactional file system.
Constructors
new
DocumentRegistry(transactionalFileSystem: TransactionalFileSystem)Constructor.
Methods
acquireDocument(): ts.SourceFile
fileName: string,
compilationSettings: CompilerOptions,
scriptSnapshot: ts.IScriptSnapshot,
version: string,
scriptKind: ScriptKind | undefined,
acquireDocumentWithKey(): ts.SourceFile
fileName: string,
path: ts.Path,
compilationSettings: CompilerOptions,
key: ts.DocumentRegistryBucketKey,
scriptSnapshot: ts.IScriptSnapshot,
version: string,
scriptKind: ScriptKind | undefined,
createOrUpdateSourceFile(): ts.SourceFile
fileName: StandardizedFilePath,
compilationSettings: CompilerOptions,
scriptSnapshot: ts.IScriptSnapshot,
scriptKind: ScriptKind | undefined,
Creates or updates a source file in the document registry.
getKeyForCompilationSettings(settings: CompilerOptions): ts.DocumentRegistryBucketKey
getSourceFileVersion(sourceFile: ts.SourceFile): string
releaseDocument(fileName: string, compilationSettings: CompilerOptions): void
releaseDocumentWithKey(path: ts.Path, key: ts.DocumentRegistryBucketKey): void
removeSourceFile(fileName: StandardizedFilePath): void
Removes the source file from the document registry.
reportStats(): string
updateDocument(): ts.SourceFile
fileName: string,
compilationSettings: CompilerOptions,
scriptSnapshot: ts.IScriptSnapshot,
version: string,
scriptKind: ScriptKind | undefined,
updateDocumentWithKey(): ts.SourceFile
fileName: string,
path: ts.Path,
compilationSettings: CompilerOptions,
key: ts.DocumentRegistryBucketKey,
scriptSnapshot: ts.IScriptSnapshot,
version: string,
scriptKind: ScriptKind | undefined,