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

Function refsFrom

__tests__/nested-declarator-functions.test.ts:19–20  ·  view source on GitHub ↗
(result: ReturnType<typeof extractFromSource>, id: string)

Source from the content-addressed store, hash-verified

17});
18
19const refsFrom = (result: ReturnType<typeof extractFromSource>, id: string) =>
20 result.unresolvedReferences.filter((r) => r.fromNodeId === id).map((r) => r.referenceName);
21
22describe('declarator-bound functions inside a body', () => {
23 it('extracts const arrows and function expressions as functions of the enclosing one', () => {

Calls 1

mapMethod · 0.80

Tested by

no test coverage detected