MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / moduleScopeOf

Function moduleScopeOf

src/resolution/callback-synthesizer.ts:599–604  ·  view source on GitHub ↗
(file: string)

Source from the content-addressed store, hash-verified

597 return ws ? [...new Set(ws.byName.values())].sort((a, b) => b.length - a.length) : [];
598 })();
599 const moduleScopeOf = (file: string): string => {
600 for (const dir of moduleDirs) {
601 if (file === dir || file.startsWith(dir + '/')) return dir;
602 }
603 return '';
604 };
605
606 for (const file of ctx.getAllFiles()) {
607 if ((++scannedFiles & 15) === 0) await onYield();

Callers 2

arkuiEmitterEdgesFunction · 0.85
arkuiRouterEdgesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected