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

Function callRefsFrom

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

Source from the content-addressed store, hash-verified

13625`;
13626
13627 function callRefsFrom(result: ReturnType<typeof extractFromSource>, methodName: string): string[] {
13628 const from = result.nodes.find((n) => n.kind === 'method' && n.name === methodName);
13629 return result.unresolvedReferences
13630 .filter((r) => r.referenceKind === 'calls' && r.fromNodeId === from?.id)
13631 .map((r) => r.referenceName);
13632 }
13633
13634 it('emits a call ref for a custom component instantiation inside build()', () => {
13635 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