(field: string | undefined, node: Node, absLine: number)
| 254 | const registrars = new Map<string, Array<{ node: Node; line: number }>>(); // field → registrar methods + append line |
| 255 | |
| 256 | const addReg = (field: string | undefined, node: Node, absLine: number) => { |
| 257 | if (!field || /^\d+$/.test(field)) return; // `$0.append` mis-captures the `0`; the write-RE owns that field |
| 258 | const arr = registrars.get(field) ?? []; |
| 259 | if (!arr.some((r) => r.node.id === node.id)) arr.push({ node, line: absLine }); |
| 260 | registrars.set(field, arr); |
| 261 | }; |
| 262 | |
| 263 | // Slices EVERY Swift/Kotlin method/function's source (no cheap name-gate), so |
| 264 | // on a repo with a huge file this is the heaviest synthesis pass — yield |
no test coverage detected