(label: string, kind: WireStep['kind'], depth: number, extra: Partial<WireStep> = {})
| 13 | } |
| 14 | |
| 15 | function 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 | |
| 20 | function 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 }; |
no test coverage detected