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

Function ref

__tests__/ui-steps-model.test.ts:11–13  ·  view source on GitHub ↗
(name: string, file = 'src/a.tsx', language: WireNodeRef['language'] = 'tsx')

Source from the content-addressed store, hash-verified

9import type { WireNodeRef, WireStep, WireStepLink, WireStepSite, WireStepsPayload } from '../ui/src/lib/wire';
10
11function ref(name: string, file = 'src/a.tsx', language: WireNodeRef['language'] = 'tsx'): WireNodeRef {
12 return { id: `function:${name}`, kind: 'function', name, qualifiedName: name, file, line: 1, endLine: 9, language, test: false };
13}
14
15function step(label: string, kind: WireStep['kind'], depth: number, extra: Partial<WireStep> = {}): WireStep {
16 const node = kind === 'effect' ? null : ref(label, extra.node?.file ?? 'src/a.tsx');

Callers 5

stepFunction · 0.70
chainFunction · 0.70
mkFunction · 0.70
shortFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected