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

Function label

__tests__/js-static-override-dispatch.test.ts:118–121  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

116 function overrides(g: CodeGraph, file: string): string[] {
117 const out: string[] = [];
118 const label = (id: string) => {
119 const n = g.getNode(id)!;
120 return `${n.isStatic ? 'static ' : ''}${n.qualifiedName}`;
121 };
122 for (const node of g.getNodesInFile(file)) {
123 for (const e of g.getOutgoingEdges(node.id)) {
124 if (e.kind === 'calls' && e.metadata?.synthesizedBy === 'interface-impl') out.push(`${label(e.source)} -> ${label(e.target)}`);

Callers 1

overridesFunction · 0.70

Calls 1

getNodeMethod · 0.80

Tested by

no test coverage detected