MCPcopy
hub / github.com/colbymchenry/codegraph / methodsOf

Function methodsOf

src/resolution/callback-synthesizer.ts:433–437  ·  view source on GitHub ↗
(classId: string)

Source from the content-addressed store, hash-verified

431 const edges: Edge[] = [];
432 const seen = new Set<string>();
433 const methodsOf = (classId: string): Node[] =>
434 queries
435 .getOutgoingEdges(classId, ['contains'])
436 .map((e) => queries.getNodeById(e.target))
437 .filter((n): n is Node => !!n && n.kind === 'method');
438 for (const cls of queries.getNodesByKind('class')) {
439 const subMethods = methodsOf(cls.id).filter((n) => n.language === 'cpp');
440 if (subMethods.length === 0) continue;

Callers 2

cppOverrideEdgesFunction · 0.70
interfaceOverrideEdgesFunction · 0.70

Calls 2

getNodeByIdMethod · 0.65
getOutgoingEdgesMethod · 0.45

Tested by

no test coverage detected