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

Function forEachKeyOfExportedModulesMap

test/fixtures/snapshot/typescript.js:120393–120409  ·  view source on GitHub ↗
(state, filePath, fn)

Source from the content-addressed store, hash-verified

120391 return newSignature !== oldSignature;
120392 }
120393 function forEachKeyOfExportedModulesMap(state, filePath, fn) {
120394 // Go through exported modules from cache first
120395 var keys = state.currentAffectedFilesExportedModulesMap.getKeys(filePath);
120396 var result = keys && ts.forEachKey(keys, fn);
120397 if (result)
120398 return result;
120399 // If exported from path is not from cache and exported modules has path, all files referencing file exported from are affected
120400 keys = state.exportedModulesMap.getKeys(filePath);
120401 return keys && ts.forEachKey(keys, function (exportedFromPath) {
120402 var _a;
120403 // If the cache had an updated value, skip
120404 return !state.currentAffectedFilesExportedModulesMap.hasKey(exportedFromPath) &&
120405 !((_a = state.currentAffectedFilesExportedModulesMap.deletedKeys()) === null || _a === void 0 ? void 0 : _a.has(exportedFromPath)) ?
120406 fn(exportedFromPath) :
120407 undefined;
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))

Calls 2

hasMethod · 0.65
fnFunction · 0.50

Tested by

no test coverage detected