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

Function GetRootLength

internal/tspath/path.go:242–248  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

240}
241
242func GetRootLength(path string) int {
243 rootLength := GetEncodedRootLength(path)
244 if rootLength < 0 {
245 return ^rootLength
246 }
247 return rootLength
248}
249
250func GetDirectoryPath(path string) string {
251 path = NormalizeSlashes(path)

Callers 14

verifyCompilerOptionsMethod · 0.92
getSourceMapDirectoryMethod · 0.92
getSourceMappingURLMethod · 0.92
fixRootFunction · 0.92
CombinePathsFunction · 0.85
GetPathComponentsFunction · 0.85
GetDirectoryPathFunction · 0.85
GetBaseFileNameFunction · 0.85

Calls 1

GetEncodedRootLengthFunction · 0.85

Tested by 1

TestGetRootLengthFunction · 0.68