MCPcopy Index your code
hub / github.com/nodejs/node / ToSrcRelPath

Method ToSrcRelPath

deps/v8/tools/mb/mb.py:996–1000  ·  view source on GitHub ↗

Returns a relative path from the top of the repo.

(self, path)

Source from the content-addressed store, hash-verified

994 *comps)
995
996 def ToSrcRelPath(self, path):
997 """Returns a relative path from the top of the repo."""
998 if path.startswith('//'):
999 return path[2:].replace('/', self.sep)
1000 return self.RelPath(path, self.chromium_src_dir)
1001
1002 def RunGNAnalyze(self, vals):
1003 # Analyze runs before 'gn gen' now, so we need to run gn gen

Callers 5

_RunLocallyIsolatedMethod · 0.95
RunGNIsolateMethod · 0.95
WriteIsolateFilesMethod · 0.95
ToAbsPathMethod · 0.95
BuildMethod · 0.95

Calls 1

RelPathMethod · 0.95

Tested by

no test coverage detected