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

Function synth

__tests__/resolution.test.ts:1159–1160  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

1157 expect(bufImpl, 'the generic impl is addressable by its type').toBeDefined();
1158
1159 const synth = (id: string) =>
1160 cg.getOutgoingEdges(id).filter((e) => e.kind === 'calls' && e.provenance === 'heuristic');
1161 // Dispatch fans out from the declaration to BOTH implementations…
1162 const fromTrait = synth(traitMethod.id);
1163 expect(new Set(fromTrait.map((e) => e.target))).toEqual(new Set([fileImpl!.id, bufImpl!.id]));

Callers 1

resolution.test.tsFile · 0.85

Calls 1

getOutgoingEdgesMethod · 0.45

Tested by

no test coverage detected