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

Function target

__tests__/python-local-binding-order.test.ts:71–71  ·  view source on GitHub ↗
(line: number, ctx: ResolutionContext)

Source from the content-addressed store, hash-verified

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', () => {
74 const view = cg.getNodesByKind('function').find((n) => n.name === 'view')!.id;

Calls 1

refAtFunction · 0.85

Tested by

no test coverage detected