The text a walk over the indexed files reads: see ResolutionContext.scanFile.
(filePath: string)
| 862 | |
| 863 | /** The text a walk over the indexed files reads: see ResolutionContext.scanFile. */ |
| 864 | private scanFile(filePath: string): string | null { |
| 865 | if (this.fileCache.has(filePath)) return this.fileCache.get(filePath) ?? null; |
| 866 | try { |
| 867 | return readSourceText(path.join(this.projectRoot, filePath), 'latin1'); |
| 868 | } catch { |
| 869 | return null; |
| 870 | } |
| 871 | } |
| 872 | |
| 873 | /** |
| 874 | * Create the resolution context |
no test coverage detected