MCPcopy Create free account
hub / github.com/microsoft/typescript-go / NewInfoCache

Function NewInfoCache

internal/packagejson/cache.go:175–180  ·  view source on GitHub ↗
(currentDirectory string, useCaseSensitiveFileNames bool)

Source from the content-addressed store, hash-verified

173}
174
175func NewInfoCache(currentDirectory string, useCaseSensitiveFileNames bool) *InfoCache {
176 return &InfoCache{
177 currentDirectory: currentDirectory,
178 useCaseSensitiveFileNames: useCaseSensitiveFileNames,
179 }
180}
181
182func (p *InfoCache) Get(packageJsonPath string) *InfoCacheEntry {
183 key := tspath.ToPath(packageJsonPath, p.currentDirectory, p.useCaseSensitiveFileNames)

Callers 1

newCachesFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected