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

Function emitSourceFileWorker

test/fixtures/snapshot/typescript.js:113544–113553  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

113542 }
113543 }
113544 function emitSourceFileWorker(node) {
113545 var statements = node.statements;
113546 pushNameGenerationScope(node);
113547 ts.forEach(node.statements, generateNames);
113548 emitHelpers(node);
113549 var index = ts.findIndex(statements, function (statement) { return !ts.isPrologueDirective(statement); });
113550 emitTripleSlashDirectivesIfNeeded(node);
113551 emitList(node, statements, 1 /* ListFormat.MultiLine */, /*parenthesizerRule*/ undefined, index === -1 ? statements.length : index);
113552 popNameGenerationScope(node);
113553 }
113554 // Transformation nodes
113555 function emitPartiallyEmittedExpression(node) {
113556 var emitFlags = ts.getEmitFlags(node);

Callers 1

emitSourceFileFunction · 0.85

Calls 6

pushNameGenerationScopeFunction · 0.85
emitHelpersFunction · 0.85
emitListFunction · 0.85
popNameGenerationScopeFunction · 0.85
forEachMethod · 0.65

Tested by

no test coverage detected