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

Function createExcludeHandlingAddWatch

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

Source from the content-addressed store, hash-verified

115635 watchDirectory: createExcludeHandlingAddWatch("watchDirectory")
115636 };
115637 function createExcludeHandlingAddWatch(key) {
115638 return function (file, cb, flags, options, detailInfo1, detailInfo2) {
115639 var _a;
115640 return !ts.matchesExclude(file, key === "watchFile" ? options === null || options === void 0 ? void 0 : options.excludeFiles : options === null || options === void 0 ? void 0 : options.excludeDirectories, useCaseSensitiveFileNames(), ((_a = host.getCurrentDirectory) === null || _a === void 0 ? void 0 : _a.call(host)) || "") ?
115641 factory[key].call(/*thisArgs*/ undefined, file, cb, flags, options, detailInfo1, detailInfo2) :
115642 excludeWatcherFactory(file, flags, options, detailInfo1, detailInfo2);
115643 };
115644 }
115645 function useCaseSensitiveFileNames() {
115646 return typeof host.useCaseSensitiveFileNames === "boolean" ?
115647 host.useCaseSensitiveFileNames :

Callers 1

getWatchFactoryFunction · 0.85

Calls 2

callMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…