import { DocumentRegistry } from "https://dotland.deno.dev/x/ts_morph@21.0.0/common/mod.ts";
An implementation of a ts.DocumentRegistry that uses a transactional file system.
Methods
acquireDocument(): ts.SourceFile
fileName: string,
compilationSettings: ts.CompilerOptions,
scriptSnapshot: ts.IScriptSnapshot,
version: string,
scriptKind: ts.ScriptKind | undefined,
acquireDocumentWithKey(): ts.SourceFile
fileName: string,
path: ts.Path,
compilationSettings: ts.CompilerOptions,
key: ts.DocumentRegistryBucketKey,
scriptSnapshot: ts.IScriptSnapshot,
version: string,
scriptKind: ts.ScriptKind | undefined,
createOrUpdateSourceFile(): ts.SourceFile
fileName: StandardizedFilePath,
compilationSettings: ts.CompilerOptions,
scriptSnapshot: ts.IScriptSnapshot,
scriptKind: ts.ScriptKind | undefined,
Creates or updates a source file in the document registry.
getKeyForCompilationSettings(settings: ts.CompilerOptions): ts.DocumentRegistryBucketKey
getSourceFileVersion(sourceFile: ts.SourceFile): string
releaseDocument(fileName: string, compilationSettings: ts.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: ts.CompilerOptions,
scriptSnapshot: ts.IScriptSnapshot,
version: string,
scriptKind: ts.ScriptKind | undefined,
updateDocumentWithKey(): ts.SourceFile
fileName: string,
path: ts.Path,
compilationSettings: ts.CompilerOptions,
key: ts.DocumentRegistryBucketKey,
scriptSnapshot: ts.IScriptSnapshot,
version: string,
scriptKind: ts.ScriptKind | undefined,