(fileName, eventKind, path)
| 123844 | return watchFile(file, function (fileName, eventKind) { return callback(fileName, eventKind, path); }, pollingInterval, options, watchType); |
| 123845 | } |
| 123846 | function onSourceFileChange(fileName, eventKind, path) { |
| 123847 | updateCachedSystemWithFile(fileName, path, eventKind); |
| 123848 | // Update the source file cache |
| 123849 | if (eventKind === ts.FileWatcherEventKind.Deleted && sourceFilesCache.has(path)) { |
| 123850 | resolutionCache.invalidateResolutionOfFile(path); |
| 123851 | } |
| 123852 | nextSourceFileVersion(path); |
| 123853 | // Update the program |
| 123854 | scheduleProgramUpdate(); |
| 123855 | } |
| 123856 | function updateCachedSystemWithFile(fileName, path, eventKind) { |
| 123857 | if (cachedDirectoryStructureHost) { |
| 123858 | cachedDirectoryStructureHost.addOrDeleteFile(fileName, path, eventKind); |
nothing calls this directly
no test coverage detected