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

Function handleDtsMayChangeOfGlobalScope

test/fixtures/snapshot/typescript.js:120410–120419  ·  view source on GitHub ↗
(state, filePath, cancellationToken, computeHash, host)

Source from the content-addressed store, hash-verified

120408 });
120409 }
120410 function handleDtsMayChangeOfGlobalScope(state, filePath, cancellationToken, computeHash, host) {
120411 var _a;
120412 if (!((_a = state.fileInfos.get(filePath)) === null || _a === void 0 ? void 0 : _a.affectsGlobalScope))
120413 return false;
120414 // Every file needs to be handled
120415 ts.BuilderState.getAllFilesExcludingDefaultLibraryFile(state, state.program, /*firstSourceFile*/ undefined)
120416 .forEach(function (file) { return handleDtsMayChangeOf(state, file.resolvedPath, cancellationToken, computeHash, host); });
120417 removeDiagnosticsOfLibraryFiles(state);
120418 return true;
120419 }
120420 /**
120421 * Iterate on referencing modules that export entities from affected file and delete diagnostics and add pending emit
120422 */

Calls 4

handleDtsMayChangeOfFunction · 0.85
getMethod · 0.65
forEachMethod · 0.65

Tested by

no test coverage detected