(func)
| 117600 | return sourceFile.parseDiagnostics; |
| 117601 | } |
| 117602 | function runWithCancellationToken(func) { |
| 117603 | try { |
| 117604 | return func(); |
| 117605 | } |
| 117606 | catch (e) { |
| 117607 | if (e instanceof ts.OperationCanceledException) { |
| 117608 | // We were canceled while performing the operation. Because our type checker |
| 117609 | // might be a bad state, we need to throw it away. |
| 117610 | typeChecker = undefined; |
| 117611 | } |
| 117612 | throw e; |
| 117613 | } |
| 117614 | } |
| 117615 | function getSemanticDiagnosticsForFile(sourceFile, cancellationToken) { |
| 117616 | return ts.concatenate(filterSemanticDiagnostics(getBindAndCheckDiagnosticsForFile(sourceFile, cancellationToken), options), getProgramDiagnostics(sourceFile)); |
| 117617 | } |
no test coverage detected