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

Function updateOutputTimestampsWorker

test/fixtures/snapshot/typescript.js:125134–125158  ·  view source on GitHub ↗
(state, proj, priorNewestUpdateTime, verboseMessage, skipOutputs)

Source from the content-addressed store, hash-verified

125132 return actual;
125133 }
125134 function updateOutputTimestampsWorker(state, proj, priorNewestUpdateTime, verboseMessage, skipOutputs) {
125135 if (proj.options.noEmit)
125136 return priorNewestUpdateTime;
125137 var host = state.host;
125138 var outputs = ts.getAllProjectOutputs(proj, !host.useCaseSensitiveFileNames());
125139 if (!skipOutputs || outputs.length !== skipOutputs.size) {
125140 var reportVerbose = !!state.options.verbose;
125141 var now = host.now ? host.now() : new Date();
125142 for (var _i = 0, outputs_2 = outputs; _i < outputs_2.length; _i++) {
125143 var file = outputs_2[_i];
125144 if (skipOutputs && skipOutputs.has(toPath(state, file))) {
125145 continue;
125146 }
125147 if (reportVerbose) {
125148 reportVerbose = false;
125149 reportStatus(state, verboseMessage, proj.options.configFilePath);
125150 }
125151 if (ts.isDeclarationFileName(file)) {
125152 priorNewestUpdateTime = newer(priorNewestUpdateTime, ts.getModifiedTime(host, file));
125153 }
125154 host.setModifiedTime(file, now);
125155 }
125156 }
125157 return priorNewestUpdateTime;
125158 }
125159 function updateOutputTimestamps(state, proj, resolvedPath) {
125160 if (state.options.dry) {
125161 return reportStatus(state, ts.Diagnostics.A_non_dry_build_would_update_timestamps_for_output_of_project_0, proj.options.configFilePath);

Callers 2

finishEmitFunction · 0.85
updateOutputTimestampsFunction · 0.85

Calls 5

toPathFunction · 0.85
reportStatusFunction · 0.85
newerFunction · 0.85
nowMethod · 0.80
hasMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…