(context, errorCodes, use)
| 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++) { |
nothing calls this directly
no test coverage detected