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

Function removeChildWatches

test/fixtures/snapshot/typescript.js:6671–6681  ·  view source on GitHub ↗
(parentWatcher)

Source from the content-addressed store, hash-verified

6669 sysLog("sysLog:: Elapsed:: ".concat(elapsed, "ms:: onTimerToUpdateChildWatches:: ").concat(cacheToUpdateChildWatches.size, " ").concat(timerToUpdateChildWatches));
6670 }
6671 function removeChildWatches(parentWatcher) {
6672 if (!parentWatcher)
6673 return;
6674 var existingChildWatches = parentWatcher.childWatches;
6675 parentWatcher.childWatches = ts.emptyArray;
6676 for (var _i = 0, existingChildWatches_1 = existingChildWatches; _i < existingChildWatches_1.length; _i++) {
6677 var childWatcher = existingChildWatches_1[_i];
6678 childWatcher.close();
6679 removeChildWatches(cache.get(toCanonicalFilePath(childWatcher.dirName)));
6680 }
6681 }
6682 function updateChildWatches(parentDir, parentDirPath, options) {
6683 // Iterate through existing children and update the watches if needed
6684 var parentWatcher = cache.get(parentDirPath);

Callers 1

Calls 2

closeMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected