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

Function createFileWatcherWithLogging

test/fixtures/snapshot/typescript.js:115656–115665  ·  view source on GitHub ↗
(file, cb, flags, options, detailInfo1, detailInfo2)

Source from the content-addressed store, hash-verified

115654 };
115655 }
115656 function createFileWatcherWithLogging(file, cb, flags, options, detailInfo1, detailInfo2) {
115657 log("FileWatcher:: Added:: ".concat(getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo)));
115658 var watcher = triggerInvokingFactory.watchFile(file, cb, flags, options, detailInfo1, detailInfo2);
115659 return {
115660 close: function () {
115661 log("FileWatcher:: Close:: ".concat(getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo)));
115662 watcher.close();
115663 }
115664 };
115665 }
115666 function createDirectoryWatcherWithLogging(file, cb, flags, options, detailInfo1, detailInfo2) {
115667 var watchInfo = "DirectoryWatcher:: Added:: ".concat(getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo));
115668 log(watchInfo);

Callers

nothing calls this directly

Calls 5

getWatchInfoFunction · 0.85
concatMethod · 0.80
logFunction · 0.70
closeMethod · 0.65
watchFileMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…