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

Function getAllModulePaths

internal/modulespecifiers/specifiers.go:175–196  ·  view source on GitHub ↗
(
	info Info,
	importedFileName string,
	host ModuleSpecifierGenerationHost,
	compilerOptions *core.CompilerOptions,
	preferences UserPreferences,
	options ModuleSpecifierOptions,
)

Source from the content-addressed store, hash-verified

173}
174
175func getAllModulePaths(
176 info Info,
177 importedFileName string,
178 host ModuleSpecifierGenerationHost,
179 compilerOptions *core.CompilerOptions,
180 preferences UserPreferences,
181 options ModuleSpecifierOptions,
182) []ModulePath {
183 // !!! use new cache model
184 // importingFilePath := tspath.ToPath(info.ImportingSourceFileName, host.GetCurrentDirectory(), host.UseCaseSensitiveFileNames());
185 // importedFilePath := tspath.ToPath(importedFileName, host.GetCurrentDirectory(), host.UseCaseSensitiveFileNames());
186 // cache := host.getModuleSpecifierCache();
187 // if (cache != nil) {
188 // cached := cache.get(importingFilePath, importedFilePath, preferences, options);
189 // if (cached.modulePaths) {return cached.modulePaths;}
190 // }
191 modulePaths := getAllModulePathsWorker(info, importedFileName, host, compilerOptions, options)
192 // if (cache != nil) {
193 // cache.setModulePaths(importingFilePath, importedFilePath, preferences, options, modulePaths);
194 // }
195 return modulePaths
196}
197
198func getAllModulePathsWorker(
199 info Info,

Callers 2

Calls 1

getAllModulePathsWorkerFunction · 0.85

Tested by

no test coverage detected