MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / calleeTarget

Function calleeTarget

graph-ui/src/ir/checklist-generator.ts:194–196  ·  view source on GitHub ↗

* Where a call leads: the declaration of its target, never its call site. * * A call to `validateUser` on line 24 of `userService.ts` is declared on line * 19 of `validate.ts`, and both numbers are true about different files. * Following the item has to arrive at the declaration, which is what t

(root: string, call: CallSite)

Source from the content-addressed store, hash-verified

192 * has not read yet.
193 */
194function calleeTarget(root: string, call: CallSite): SymbolRef | undefined {
195 return refAt(root, call.targetFile, call.targetLine ?? call.line, call.targetName, call.targetQualifiedName);
196}
197
198/** Keep the first occurrence of each key, so the engine's own order is preserved. */
199function distinctBy<T>(entries: T[], keyOf: (entry: T) => string): T[] {

Callers 1

generateChecklistFunction · 0.85

Calls 1

refAtFunction · 0.70

Tested by

no test coverage detected