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

Function callerFiles

__tests__/orphaned-refs-sweep.test.ts:40–42  ·  view source on GitHub ↗

Distinct files with a `calls` edge into the node.

(target: { id: string })

Source from the content-addressed store, hash-verified

38
39 /** Distinct files with a `calls` edge into the node. */
40 function callerFiles(target: { id: string }): string[] {
41 return [...new Set(cg.getCallers(target.id).map((c) => c.node.filePath))].sort();
42 }
43
44 /**
45 * Leave `relPath` in the exact on-disk state a resolution pass killed

Callers 1

Calls 1

getCallersMethod · 0.45

Tested by

no test coverage detected