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

Function createTriggerLoggingAddWatch

test/fixtures/snapshot/typescript.js:115684–115697  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

115682 };
115683 }
115684 function createTriggerLoggingAddWatch(key) {
115685 return function (file, cb, flags, options, detailInfo1, detailInfo2) { return plainInvokeFactory[key].call(/*thisArgs*/ undefined, file, function () {
115686 var args = [];
115687 for (var _i = 0; _i < arguments.length; _i++) {
115688 args[_i] = arguments[_i];
115689 }
115690 var triggerredInfo = "".concat(key === "watchFile" ? "FileWatcher" : "DirectoryWatcher", ":: Triggered with ").concat(args[0], " ").concat(args[1] !== undefined ? args[1] : "", ":: ").concat(getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo));
115691 log(triggerredInfo);
115692 var start = ts.timestamp();
115693 cb.call.apply(cb, __spreadArray([/*thisArg*/ undefined], args, false));
115694 var elapsed = ts.timestamp() - start;
115695 log("Elapsed:: ".concat(elapsed, "ms ").concat(triggerredInfo));
115696 }, flags, options, detailInfo1, detailInfo2); };
115697 }
115698 function getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo) {
115699 return "WatchInfo: ".concat(file, " ").concat(flags, " ").concat(JSON.stringify(options), " ").concat(getDetailWatchInfo ? getDetailWatchInfo(detailInfo1, detailInfo2) : detailInfo2 === undefined ? detailInfo1 : "".concat(detailInfo1, " ").concat(detailInfo2));
115700 }

Callers 1

getWatchFactoryFunction · 0.85

Calls 5

getWatchInfoFunction · 0.85
concatMethod · 0.80
logFunction · 0.70
callMethod · 0.45
applyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…