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

Function performIncrementalCompilation

test/fixtures/snapshot/typescript.js:123268–123276  ·  view source on GitHub ↗
(input)

Source from the content-addressed store, hash-verified

123266 }
123267 ts.createWatchCompilerHostOfFilesAndCompilerOptions = createWatchCompilerHostOfFilesAndCompilerOptions;
123268 function performIncrementalCompilation(input) {
123269 var system = input.system || ts.sys;
123270 var host = input.host || (input.host = ts.createIncrementalCompilerHost(input.options, system));
123271 var builderProgram = ts.createIncrementalProgram(input);
123272 var exitStatus = emitFilesAndReportErrorsAndGetExitStatus(builderProgram, input.reportDiagnostic || createDiagnosticReporter(system), function (s) { return host.trace && host.trace(s); }, input.reportErrorSummary || input.options.pretty ? function (errorCount, filesInError) { return system.write(getErrorSummaryText(errorCount, filesInError, system.newLine, host)); } : undefined);
123273 if (input.afterProgramEmitAndDiagnostics)
123274 input.afterProgramEmitAndDiagnostics(builderProgram);
123275 return exitStatus;
123276 }
123277 ts.performIncrementalCompilation = performIncrementalCompilation;
123278})(ts || (ts = {}));
123279var ts;

Callers

nothing calls this directly

Calls 5

createDiagnosticReporterFunction · 0.85
getErrorSummaryTextFunction · 0.85
traceMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected