(
fn: Node,
hop: HopSite,
guards: readonly BranchGuard[],
what: { step?: string; link?: string; into?: string },
trigger: WireStepTrigger | null = null,
loops: readonly SiteLoop[] = []
)
| 683 | */ |
| 684 | const programs = new Map<string, Map<string, ProgramSite>>(); |
| 685 | const record = ( |
| 686 | fn: Node, |
| 687 | hop: HopSite, |
| 688 | guards: readonly BranchGuard[], |
| 689 | what: { step?: string; link?: string; into?: string }, |
| 690 | trigger: WireStepTrigger | null = null, |
| 691 | loops: readonly SiteLoop[] = [] |
| 692 | ): void => { |
| 693 | let sites = programs.get(fn.id); |
| 694 | if (!sites) { |
| 695 | sites = new Map(); |
| 696 | programs.set(fn.id, sites); |
| 697 | } |
| 698 | const key = `${hop.line}:${hop.column}:${what.step ?? what.into ?? ''}`; |
| 699 | if (sites.has(key)) return; |
| 700 | sites.set(key, { |
| 701 | ...what, |
| 702 | at: { line: hop.line, column: hop.column, end: hop.end }, |
| 703 | ...(hop.within ? { within: hop.within } : {}), |
| 704 | guards: [...guards], |
| 705 | ...(loops.length > 0 ? { loops: [...loops] } : {}), |
| 706 | ...(trigger ? { trigger } : {}), |
| 707 | }); |
| 708 | }; |
| 709 | const truncated = { steps: 0, hubs: 0, chrome: 0 }; |
| 710 | let effectScans = 0; |
| 711 | const fanIn = new Map<string, number>(); |
no test coverage detected