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

Method realPath

internal/module/resolver.go:1865–1871  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

1863}
1864
1865func (r *resolutionState) realPath(path string) string {
1866 rp := tspath.NormalizePath(r.resolver.host.FS().Realpath(path))
1867 if r.tracer != nil {
1868 r.tracer.write(diagnostics.Resolving_real_path_for_0_result_1, path, rp)
1869 }
1870 return rp
1871}
1872
1873func (r *resolutionState) validatePackageJSONField(fieldName string, field packagejson.TypeValidatedField) bool {
1874 if field.IsPresent() {

Calls 4

NormalizePathFunction · 0.92
RealpathMethod · 0.65
FSMethod · 0.65
writeMethod · 0.65

Tested by

no test coverage detected