(arr: ContextSlice[], s: ContextSlice)
| 93 | const seenSlice = new Set<string>(); |
| 94 | |
| 95 | const pushSlice = (arr: ContextSlice[], s: ContextSlice) => { |
| 96 | const key = `${s.file}:${s.startLine ?? 0}:${s.symbol ?? ''}:${s.reason}`; |
| 97 | if (seenSlice.has(key)) return; |
| 98 | seenSlice.add(key); |
| 99 | arr.push(s); |
| 100 | }; |
| 101 | |
| 102 | // 1. TARGET slices — current content of files this node modifies. |
| 103 | const existingTargets: string[] = []; |
no test coverage detected