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

Function step

__tests__/ui-steps-model.test.ts:15–18  ·  view source on GitHub ↗
(label: string, kind: WireStep['kind'], depth: number, extra: Partial<WireStep> = {})

Source from the content-addressed store, hash-verified

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');
17 return { id: node?.id ?? `effect:fn:${label}`, kind, anchor: depth === 0, node, label, sub: 'src/a.tsx', depth, cut: null, ...extra };
18}
19
20function link(from: WireStep, to: WireStep, extra: Partial<WireStepLink> = {}): WireStepLink {
21 return { id: `${from.id} ${to.id}`, from: from.id, to: to.id, kind: 'calls', via: [], when: '', label: '', synthesized: false, uncertain: false, sites: [], ...extra };

Callers 4

chainFunction · 0.70
mkFunction · 0.70
shortFunction · 0.70

Calls 1

refFunction · 0.70

Tested by

no test coverage detected