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

Function byOwner

__tests__/function-ref.test.ts:1313–1313  ·  view source on GitHub ↗
(owner: string, name = 'fetch')

Source from the content-addressed store, hash-verified

1311 try {
1312 await cg.indexAll();
1313 const byOwner = (owner: string, name = 'fetch') => cg.getNodesByName(name).find(n => n.qualifiedName.startsWith(`${owner}::`))!;
1314 const fnRefs = (owner: string, name = 'fetch') => cg.getIncomingEdges(byOwner(owner, name).id)
1315 .filter(e => e.kind === 'references' && e.metadata?.fnRef === true);
1316 // ES inherits Base.fetch and Vec overrides it: the shared declaration is Base.fetch.

Callers 1

fnRefsFunction · 0.85

Calls 1

getNodesByNameMethod · 0.65

Tested by

no test coverage detected