(fileName)
| 256 | } |
| 257 | |
| 258 | function getFileText(fileName) { |
| 259 | if (fileTextCache.has(fileName)) return fileTextCache.get(fileName) |
| 260 | if (!existsSync(fileName)) return undefined |
| 261 | |
| 262 | const text = readFileSync(fileName, 'utf8') |
| 263 | fileTextCache.set(fileName, text) |
| 264 | return text |
| 265 | } |
| 266 | |
| 267 | function getLineText(fileName, sourceFile, position) { |
| 268 | const { line } = sourceFile.getLineAndCharacterOfPosition(position) |
no test coverage detected