MCPcopy Create free account
hub / github.com/nodejs/node / getUseSiteFix

Function getUseSiteFix

test/fixtures/snapshot/typescript.js:150467–150470  ·  view source on GitHub ↗
(context, expression, errorCode, checker, trackChanges, fixedDeclarations)

Source from the content-addressed store, hash-verified

150465 }
150466 }
150467 function getUseSiteFix(context, expression, errorCode, checker, trackChanges, fixedDeclarations) {
150468 var changes = trackChanges(function (t) { return makeChange(t, errorCode, context.sourceFile, checker, expression, fixedDeclarations); });
150469 return codefix.createCodeFixAction(fixId, changes, ts.Diagnostics.Add_await, fixId, ts.Diagnostics.Fix_all_expressions_possibly_missing_await);
150470 }
150471 function isMissingAwaitError(sourceFile, errorCode, span, cancellationToken, program) {
150472 var checker = program.getTypeChecker();
150473 var diagnostics = checker.getDiagnostics(sourceFile, cancellationToken);

Callers 1

typescript.jsFile · 0.85

Calls 2

trackChangesFunction · 0.85
makeChangeFunction · 0.85

Tested by

no test coverage detected