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

Function getFixes

test/fixtures/snapshot/typescript.js:150171–150175  ·  view source on GitHub ↗
(context)

Source from the content-addressed store, hash-verified

150169 };
150170 }
150171 function getFixes(context) {
150172 var diagnostics = getDiagnostics(context);
150173 var registrations = errorCodeToFixes.get(String(context.errorCode));
150174 return ts.flatMap(registrations, function (f) { return ts.map(f.getCodeActions(context), removeFixIdIfFixAllUnavailable(f, diagnostics)); });
150175 }
150176 codefix.getFixes = getFixes;
150177 function getAllFixes(context) {
150178 // Currently fixId is always a string.

Callers

nothing calls this directly

Calls 6

getDiagnosticsFunction · 0.85
StringClass · 0.85
flatMapMethod · 0.80
getMethod · 0.65
mapMethod · 0.65

Tested by

no test coverage detected