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