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

Function methodNameSet

src/resolution/callback-synthesizer.ts:846–853  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

844 const seen = new Set<string>();
845
846 const methodNameSet = (id: string): Set<string> =>
847 new Set(
848 queries
849 .getOutgoingEdges(id, ['contains'])
850 .map((e) => queries.getNodeById(e.target))
851 .filter((n): n is Node => !!n && n.kind === 'method')
852 .map((n) => n.name),
853 );
854
855 // Materializes GO structs only (the pass is language-gated by the caller),
856 // never the whole struct kind — that array is O(nodes) on struct-heavy

Callers 1

goImplementsEdgesFunction · 0.85

Calls 2

getNodeByIdMethod · 0.65
getOutgoingEdgesMethod · 0.45

Tested by

no test coverage detected