(isError, diagnostic)
| 49019 | return diagnostic; |
| 49020 | } |
| 49021 | function addErrorOrSuggestion(isError, diagnostic) { |
| 49022 | if (isError) { |
| 49023 | diagnostics.add(diagnostic); |
| 49024 | } |
| 49025 | else { |
| 49026 | suggestionDiagnostics.add(__assign(__assign({}, diagnostic), { category: ts.DiagnosticCategory.Suggestion })); |
| 49027 | } |
| 49028 | } |
| 49029 | function errorOrSuggestion(isError, location, message, arg0, arg1, arg2, arg3) { |
| 49030 | // Pseudo-synthesized input node |
| 49031 | if (location.pos < 0 || location.end < 0) { |
no test coverage detected