(file: string)
| 612 | if (readSource) { |
| 613 | const sources = new Map<string, string | null>(); |
| 614 | const read = (file: string): string | null => { |
| 615 | if (!sources.has(file)) { |
| 616 | sources.set(file, sources.size >= MAX_CORROBORATION_FILES ? null : readSource(file)); |
| 617 | } |
| 618 | return sources.get(file) ?? null; |
| 619 | }; |
| 620 | // The set to search is the declaring file plus everything the index says |
| 621 | // reaches into it — the same set a call could have come from. Computed once |
| 622 | // per file, not once per candidate. |
no test coverage detected