(file: string, hop: 1 | 2, line?: number)
| 442 | const candidates = new Map<string, ImpactCandidate>(); |
| 443 | |
| 444 | const addCandidate = (file: string, hop: 1 | 2, line?: number): void => { |
| 445 | const existing = candidates.get(file); |
| 446 | if (existing) { |
| 447 | if (existing.hop <= hop) return; |
| 448 | } |
| 449 | candidates.set(file, { file, hop, ...(line ? { line } : {}) }); |
| 450 | }; |
| 451 | |
| 452 | const collectImporters = ( |
| 453 | target: string |
no test coverage detected