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

Function GetNormalizedAbsolutePathWithoutRoot

internal/tspath/path.go:387–391  ·  view source on GitHub ↗
(fileName string, currentDirectory string)

Source from the content-addressed store, hash-verified

385}
386
387func GetNormalizedAbsolutePathWithoutRoot(fileName string, currentDirectory string) string {
388 absolutePath := GetNormalizedAbsolutePath(fileName, currentDirectory)
389 rootLength := GetRootLength(absolutePath)
390 return absolutePath[rootLength:]
391}
392
393func GetNormalizedAbsolutePath(fileName string, currentDirectory string) string {
394 rootLength := GetRootLength(fileName)

Callers 2

getProcessedFilesMethod · 0.92

Calls 2

GetRootLengthFunction · 0.85

Tested by 1