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

Function callRefsFrom

__tests__/extraction.test.ts:13624–13629  ·  view source on GitHub ↗
(result: ReturnType<typeof extractFromSource>, methodName: string)

Source from the content-addressed store, hash-verified

13622`;
13623
13624 function callRefsFrom(result: ReturnType<typeof extractFromSource>, methodName: string): string[] {
13625 const from = result.nodes.find((n) => n.kind === 'method' && n.name === methodName);
13626 return result.unresolvedReferences
13627 .filter((r) => r.referenceKind === 'calls' && r.fromNodeId === from?.id)
13628 .map((r) => r.referenceName);
13629 }
13630
13631 it('emits a call ref for a custom component instantiation inside build()', () => {
13632 const result = extractFromSource('pages/Page.ets', code);

Callers 1

extraction.test.tsFile · 0.85

Calls 1

mapMethod · 0.80

Tested by

no test coverage detected