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

Function tryIOAndConsumeErrors

test/fixtures/snapshot/typescript.js:129144–129150  ·  view source on GitHub ↗
(host, toApply)

Source from the content-addressed store, hash-verified

129142 }
129143 ts.tryAndIgnoreErrors = tryAndIgnoreErrors;
129144 function tryIOAndConsumeErrors(host, toApply) {
129145 var args = [];
129146 for (var _i = 2; _i < arguments.length; _i++) {
129147 args[_i - 2] = arguments[_i];
129148 }
129149 return tryAndIgnoreErrors(function () { return toApply && toApply.apply(host, args); });
129150 }
129151 ts.tryIOAndConsumeErrors = tryIOAndConsumeErrors;
129152 function findPackageJsons(startDirectory, host, stopDirectory) {
129153 var paths = [];

Callers 3

tryGetDirectoriesFunction · 0.85
tryReadDirectoryFunction · 0.85
tryFileExistsFunction · 0.85

Calls 2

tryAndIgnoreErrorsFunction · 0.85
applyMethod · 0.45

Tested by

no test coverage detected