The text a walk over the indexed files reads: see ResolutionContext.scanFile.
(filePath: string)
| 988 | |
| 989 | /** The text a walk over the indexed files reads: see ResolutionContext.scanFile. */ |
| 990 | private scanFile(filePath: string): string | null { |
| 991 | if (this.fileCache.has(filePath)) return this.fileCache.get(filePath) ?? null; |
| 992 | try { |
| 993 | const source = readSourceText(path.join(this.projectRoot, filePath), 'latin1'); |
| 994 | return source === null ? null : withoutLongRuns(source); |
| 995 | } catch { |
| 996 | return null; |
| 997 | } |
| 998 | } |
| 999 | |
| 1000 | /** |
| 1001 | * Create the resolution context |
no test coverage detected