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

Function eachDiagnostic

test/fixtures/snapshot/typescript.js:150196–150203  ·  view source on GitHub ↗
(context, errorCodes, cb)

Source from the content-addressed store, hash-verified

150194 }
150195 codefix.codeFixAll = codeFixAll;
150196 function eachDiagnostic(context, errorCodes, cb) {
150197 for (var _i = 0, _a = getDiagnostics(context); _i < _a.length; _i++) {
150198 var diag = _a[_i];
150199 if (ts.contains(errorCodes, diag.code)) {
150200 cb(diag);
150201 }
150202 }
150203 }
150204 codefix.eachDiagnostic = eachDiagnostic;
150205 function getDiagnostics(_a) {
150206 var program = _a.program, sourceFile = _a.sourceFile, cancellationToken = _a.cancellationToken;

Callers 1

codeFixAllFunction · 0.85

Calls 3

getDiagnosticsFunction · 0.85
cbFunction · 0.50
containsMethod · 0.45

Tested by

no test coverage detected