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

Function callerFiles

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

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

(target: { id: string })

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 2

mapMethod · 0.80
getCallersMethod · 0.45

Tested by

no test coverage detected