Module

x/ts_morph/common/ts_morph_common.js>DocumentRegistry

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Go to Latest
class DocumentRegistry
import { DocumentRegistry } from "https://dotland.deno.dev/x/ts_morph@21.0.0/common/ts_morph_common.js";

Constructors

new
DocumentRegistry(transactionalFileSystem)

Methods

acquireDocument(
fileName,
compilationSettings,
scriptSnapshot,
version,
scriptKind,
)
acquireDocumentWithKey(
fileName,
path,
compilationSettings,
key,
scriptSnapshot,
version,
scriptKind,
)
createOrUpdateSourceFile(
fileName,
compilationSettings,
scriptSnapshot,
scriptKind,
)
releaseDocument(fileName, compilationSettings)
updateDocument(
fileName,
compilationSettings,
scriptSnapshot,
version,
scriptKind,
)
updateDocumentWithKey(
fileName,
path,
compilationSettings,
key,
scriptSnapshot,
version,
scriptKind,
)