MCPcopy Index your code
hub / github.com/microsoft/typescript-go / GetPackageScopeForPath

Method GetPackageScopeForPath

internal/module/resolver.go:211–213  ·  view source on GitHub ↗
(directory string)

Source from the content-addressed store, hash-verified

209}
210
211func (r *Resolver) GetPackageScopeForPath(directory string) *packagejson.InfoCacheEntry {
212 return (&resolutionState{compilerOptions: r.compilerOptions, resolver: r}).getPackageScopeForPath(directory)
213}
214
215func (r *Resolver) PackageJsonCacheEntries(f func(key tspath.Path, value *packagejson.InfoCacheEntry) bool) {
216 r.caches.packageJsonInfoCache.Range(f)

Calls 1

Tested by

no test coverage detected