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

Function codeFixAll

test/fixtures/snapshot/typescript.js:150190–150194  ·  view source on GitHub ↗
(context, errorCodes, use)

Source from the content-addressed store, hash-verified

150188 }
150189 codefix.createFileTextChanges = createFileTextChanges;
150190 function codeFixAll(context, errorCodes, use) {
150191 var commands = [];
150192 var changes = ts.textChanges.ChangeTracker.with(context, function (t) { return eachDiagnostic(context, errorCodes, function (diag) { return use(t, diag, commands); }); });
150193 return createCombinedCodeActions(changes, commands.length === 0 ? undefined : commands);
150194 }
150195 codefix.codeFixAll = codeFixAll;
150196 function eachDiagnostic(context, errorCodes, cb) {
150197 for (var _i = 0, _a = getDiagnostics(context); _i < _a.length; _i++) {

Callers

nothing calls this directly

Calls 3

eachDiagnosticFunction · 0.85
useFunction · 0.85

Tested by

no test coverage detected