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

Function removeDiagnosticsOfLibraryFiles

test/fixtures/snapshot/typescript.js:120320–120331  ·  view source on GitHub ↗
(state)

Source from the content-addressed store, hash-verified

120318 return undefined;
120319 }
120320 function removeDiagnosticsOfLibraryFiles(state) {
120321 if (!state.cleanedDiagnosticsOfLibFiles) {
120322 state.cleanedDiagnosticsOfLibFiles = true;
120323 var program_1 = ts.Debug.checkDefined(state.program);
120324 var options_2 = program_1.getCompilerOptions();
120325 ts.forEach(program_1.getSourceFiles(), function (f) {
120326 return program_1.isSourceFileDefaultLibrary(f) &&
120327 !ts.skipTypeChecking(f, options_2, program_1) &&
120328 removeSemanticDiagnosticsOf(state, f.resolvedPath);
120329 });
120330 }
120331 }
120332 /**
120333 * Handles semantic diagnostics and dts emit for affectedFile and files, that are referencing modules that export entities from affected file
120334 * This is because even though js emit doesnt change, dts emit / type used can change resulting in need for dts emit and js change

Calls 2

forEachMethod · 0.65

Tested by

no test coverage detected