(sourceFile)
| 86015 | deferredDiagnosticsCallbacks = []; |
| 86016 | } |
| 86017 | function checkSourceFileWithEagerDiagnostics(sourceFile) { |
| 86018 | ensurePendingDiagnosticWorkComplete(); |
| 86019 | // then setup diagnostics for immediate invocation (as we are about to collect them, and |
| 86020 | // this avoids the overhead of longer-lived callbacks we don't need to allocate) |
| 86021 | // This also serves to make the shift to possibly lazy diagnostics transparent to serial command-line scenarios |
| 86022 | // (as in those cases, all the diagnostics will still be computed as the appropriate place in the tree, |
| 86023 | // thus much more likely retaining the same union ordering as before we had lazy diagnostics) |
| 86024 | var oldAddLazyDiagnostics = addLazyDiagnostic; |
| 86025 | addLazyDiagnostic = function (cb) { return cb(); }; |
| 86026 | checkSourceFile(sourceFile); |
| 86027 | addLazyDiagnostic = oldAddLazyDiagnostics; |
| 86028 | } |
| 86029 | function getDiagnosticsWorker(sourceFile) { |
| 86030 | if (sourceFile) { |
| 86031 | ensurePendingDiagnosticWorkComplete(); |
no test coverage detected