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

Method toPath

internal/ls/languageservice.go:40–42  ·  view source on GitHub ↗
(fileName string)

Source from the content-addressed store, hash-verified

38}
39
40func (l *LanguageService) toPath(fileName string) tspath.Path {
41 return tspath.ToPath(fileName, l.program.GetCurrentDirectory(), l.UseCaseSensitiveFileNames())
42}
43
44func (l *LanguageService) GetProgram() *compiler.Program {
45 return l.program

Callers 12

getOrParseSourceFileMethod · 0.45
getModuleIDMethod · 0.45
extractFromModuleMethod · 0.45
GetSourceFileMethod · 0.45
markBucketsDirtyMethod · 0.45
updateIndexesMethod · 0.45
extractPackageMethod · 0.45

Calls 3

ToPathFunction · 0.92
GetCurrentDirectoryMethod · 0.65

Tested by

no test coverage detected