MCPcopy Index your code
hub / github.com/colbymchenry/codegraph / toRel

Function toRel

src/resolution/import-resolver.ts:1599–1599  ·  view source on GitHub ↗
(p: string)

Source from the content-addressed store, hash-verified

1597function rustCrateRootDir(fromFileAbs: string, context: ResolutionContext): string | null {
1598 const projectRoot = context.getProjectRoot();
1599 const toRel = (p: string) => path.relative(projectRoot, p).replace(/\\/g, '/');
1600 let dir = path.dirname(fromFileAbs);
1601 for (let i = 0; i < 64; i++) {
1602 if (context.fileExists(toRel(path.join(dir, 'lib.rs'))) ||

Callers 2

rustCrateRootDirFunction · 0.85
resolveUnderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected