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

Function parseConfigHostFromCompilerHostLike

test/fixtures/snapshot/typescript.js:119439–119453  ·  view source on GitHub ↗
(host, directoryStructureHost)

Source from the content-addressed store, hash-verified

119437 ts.filterSemanticDiagnostics = filterSemanticDiagnostics;
119438 /* @internal */
119439 function parseConfigHostFromCompilerHostLike(host, directoryStructureHost) {
119440 if (directoryStructureHost === void 0) { directoryStructureHost = host; }
119441 return {
119442 fileExists: function (f) { return directoryStructureHost.fileExists(f); },
119443 readDirectory: function (root, extensions, excludes, includes, depth) {
119444 ts.Debug.assertIsDefined(directoryStructureHost.readDirectory, "'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'");
119445 return directoryStructureHost.readDirectory(root, extensions, excludes, includes, depth);
119446 },
119447 readFile: function (f) { return directoryStructureHost.readFile(f); },
119448 useCaseSensitiveFileNames: host.useCaseSensitiveFileNames(),
119449 getCurrentDirectory: function () { return host.getCurrentDirectory(); },
119450 onUnRecoverableConfigFileDiagnostic: host.onUnRecoverableConfigFileDiagnostic || ts.returnUndefined,
119451 trace: host.trace ? function (s) { return host.trace(s); } : undefined
119452 };
119453 }
119454 ts.parseConfigHostFromCompilerHostLike = parseConfigHostFromCompilerHostLike;
119455 /* @internal */
119456 function createPrependNodes(projectReferences, getCommandLine, readFile) {

Callers 1

createProgramFunction · 0.85

Calls 2

readFileMethod · 0.45
traceMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…