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

Function reportAndStoreErrors

test/fixtures/snapshot/typescript.js:125481–125487  ·  view source on GitHub ↗
(state, proj, errors)

Source from the content-addressed store, hash-verified

125479 errors.forEach(function (err) { return host.reportDiagnostic(err); });
125480 }
125481 function reportAndStoreErrors(state, proj, errors) {
125482 reportErrors(state, errors);
125483 state.projectErrorsReported.set(proj, true);
125484 if (errors.length) {
125485 state.diagnostics.set(proj, errors);
125486 }
125487 }
125488 function reportParseConfigFileDiagnostic(state, proj) {
125489 reportAndStoreErrors(state, proj, [state.configFileCache.get(proj)]);
125490 }

Callers 4

createProgramFunction · 0.85
buildErrorsFunction · 0.85

Calls 2

reportErrorsFunction · 0.85
setMethod · 0.45

Tested by

no test coverage detected