The text a walk over the indexed files reads: see ResolutionContext.scanFile.
(filePath: string)
| 960 | |
| 961 | /** The text a walk over the indexed files reads: see ResolutionContext.scanFile. */ |
| 962 | private scanFile(filePath: string): string | null { |
| 963 | if (this.fileCache.has(filePath)) return this.fileCache.get(filePath) ?? null; |
| 964 | try { |
| 965 | return readSourceText(path.join(this.projectRoot, filePath), 'latin1'); |
| 966 | } catch { |
| 967 | return null; |
| 968 | } |
| 969 | } |
| 970 | |
| 971 | /** |
| 972 | * Create the resolution context |
no test coverage detected