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

Function canInvalidateFailedLookupResolution

test/fixtures/snapshot/typescript.js:121836–121843  ·  view source on GitHub ↗
(resolution)

Source from the content-addressed store, hash-verified

121834 return invalidated;
121835 }
121836 function canInvalidateFailedLookupResolution(resolution) {
121837 return resolution.failedLookupLocations.some(function (location) {
121838 var locationPath = resolutionHost.toPath(location);
121839 return ts.contains(failedLookupChecks, locationPath) ||
121840 ts.firstDefinedIterator((startsWithPathChecks === null || startsWithPathChecks === void 0 ? void 0 : startsWithPathChecks.keys()) || ts.emptyIterator, function (fileOrDirectoryPath) { return ts.startsWith(locationPath, fileOrDirectoryPath) ? true : undefined; }) ||
121841 (isInDirectoryChecks === null || isInDirectoryChecks === void 0 ? void 0 : isInDirectoryChecks.some(function (fileOrDirectoryPath) { return isInDirectoryPath(fileOrDirectoryPath, locationPath); }));
121842 });
121843 }
121844 function closeTypeRootsWatch() {
121845 ts.clearMap(typeRootsWatches, ts.closeFileWatcher);
121846 }

Callers

nothing calls this directly

Calls 4

isInDirectoryPathFunction · 0.85
someMethod · 0.80
keysMethod · 0.65
containsMethod · 0.45

Tested by

no test coverage detected