PerDirectoryResolutionCache

external interface PerDirectoryResolutionCache<T>(source)

Cached resolutions per containing directory. This assumes that any module id will have the same resolution for sibling files located in the same folder.

Inheritors

Functions

Link copied to clipboard
abstract external fun clear()
Link copied to clipboard
abstract external fun getFromDirectoryCache(name: String, mode: ResolutionMode, directoryName: String, redirectedReference: ResolvedProjectReference?): T?
Link copied to clipboard
abstract external fun getOrCreateCacheForDirectory(directoryName: String, redirectedReference: ResolvedProjectReference = definedExternally): ModeAwareCache<T>
Link copied to clipboard
abstract external fun update(options: CompilerOptions)

Updates with the current compilerOptions the cache will operate with. This updates the redirects map as well if needed so module resolutions are cached if they can across the projects