MCPcopy Index your code
hub / github.com/nodejs/node / addErrorOrSuggestion

Function addErrorOrSuggestion

test/fixtures/snapshot/typescript.js:49021–49028  ·  view source on GitHub ↗
(isError, diagnostic)

Source from the content-addressed store, hash-verified

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) {

Callers 5

errorOrSuggestionFunction · 0.85
resolveNameHelperFunction · 0.85
checkAwaitExpressionFunction · 0.85

Calls 1

addMethod · 0.65

Tested by

no test coverage detected