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

Function errorAndMaybeSuggestAwait

test/fixtures/snapshot/typescript.js:49042–49049  ·  view source on GitHub ↗
(location, maybeMissingAwait, message, arg0, arg1, arg2, arg3)

Source from the content-addressed store, hash-verified

49040 addErrorOrSuggestion(isError, "message" in message ? ts.createDiagnosticForNode(location, message, arg0, arg1, arg2, arg3) : ts.createDiagnosticForNodeFromMessageChain(location, message)); // eslint-disable-line no-in-operator
49041 }
49042 function errorAndMaybeSuggestAwait(location, maybeMissingAwait, message, arg0, arg1, arg2, arg3) {
49043 var diagnostic = error(location, message, arg0, arg1, arg2, arg3);
49044 if (maybeMissingAwait) {
49045 var related = ts.createDiagnosticForNode(location, ts.Diagnostics.Did_you_forget_to_use_await);
49046 ts.addRelatedInfo(diagnostic, related);
49047 }
49048 return diagnostic;
49049 }
49050 function addDeprecatedSuggestionWorker(declarations, diagnostic) {
49051 var deprecatedTag = Array.isArray(declarations) ? ts.forEach(declarations, ts.getJSDocDeprecatedTag) : ts.getJSDocDeprecatedTag(declarations);
49052 if (deprecatedTag) {

Callers 6

reportOperatorErrorFunction · 0.85
helperFunction · 0.85

Calls 1

errorFunction · 0.70

Tested by

no test coverage detected