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

Function emitBuildInfo

test/fixtures/snapshot/typescript.js:110294–110305  ·  view source on GitHub ↗
(bundle, buildInfoPath)

Source from the content-addressed store, hash-verified

110292 }
110293 }
110294 function emitBuildInfo(bundle, buildInfoPath) {
110295 // Write build information if applicable
110296 if (!buildInfoPath || targetSourceFile || emitSkipped)
110297 return;
110298 var program = host.getProgramBuildInfo();
110299 if (host.isEmitBlocked(buildInfoPath)) {
110300 emitSkipped = true;
110301 return;
110302 }
110303 var version = ts.version; // Extracted into a const so the form is stable between namespace and module
110304 ts.writeFile(host, emitterDiagnostics, buildInfoPath, getBuildInfoText({ bundle: bundle, program: program, version: version }), /*writeByteOrderMark*/ false);
110305 }
110306 function emitJsFileOrBundle(sourceFileOrBundle, jsFilePath, sourceMapFilePath, relativeToBuildInfo) {
110307 if (!sourceFileOrBundle || emitOnlyDtsFiles || !jsFilePath) {
110308 return;

Callers 3

emitSourceFileOrBundleFunction · 0.85
executeStepsFunction · 0.85

Calls 14

getBuildInfoTextFunction · 0.85
getEmitHostFunction · 0.85
reportErrorsFunction · 0.85
listEmittedFileFunction · 0.85
afterProgramDoneFunction · 0.85
assertMethod · 0.80
measureMethod · 0.80
popMethod · 0.80
getMethod · 0.65
forEachMethod · 0.65
writeFileMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…