(target: string)
| 2204 | } |
| 2205 | |
| 2206 | function normalizeSeeTarget(target: string): ReadonlyArray<string> { |
| 2207 | const withoutKind = target.replace(/:[A-Za-z]+$/, "") |
| 2208 | const out = [withoutKind] |
| 2209 | if (withoutKind.endsWith("_")) out.push(withoutKind.slice(0, -1)) |
| 2210 | return Array.from(new Set(out.filter((item) => item.length > 0))) |
| 2211 | } |
| 2212 | |
| 2213 | function sourceRangeKey(file: string, range: readonly [number, number]): string { |
| 2214 | return `${file}:${range[0]}:${range[1]}` |
no test coverage detected