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

Function refAt

__tests__/python-local-binding-order.test.ts:67–70  ·  view source on GitHub ↗
(line: number)

Source from the content-addressed store, hash-verified

65 });
66
67 const refAt = (line: number): UnresolvedRef => ({
68 fromNodeId: outerId, referenceName: 'view', referenceKind: 'function_ref',
69 line, column: 13, filePath: 'views.py', language: 'python',
70 });
71 const target = (line: number, ctx: ResolutionContext): string | undefined => matchFunctionRef(refAt(line), ctx)?.targetNodeId;
72
73 it('is the function above the binding and the local below it, whichever reference asks first', () => {

Callers 1

targetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected