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

Function methodsOf

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

Source from the content-addressed store, hash-verified

769 const edges: Edge[] = [];
770 const seen = new Set<string>();
771 const methodsOf = (classId: string): Node[] =>
772 queries
773 .getOutgoingEdges(classId, ['contains'])
774 .map((e) => queries.getNodeById(e.target))
775 .filter((n): n is Node => !!n && n.kind === 'method');
776 for (const cls of queries.iterateNodesByKind('class')) {
777 if ((++scanned255 & 63) === 0) await onYield();
778 const subMethods = methodsOf(cls.id).filter((n) => n.language === 'cpp');

Callers 2

cppOverrideEdgesFunction · 0.70
interfaceOverrideEdgesFunction · 0.70

Calls 4

getNodeByIdMethod · 0.65
getMethod · 0.65
getOutgoingEdgesMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected