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