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

Function emitBlock

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

Source from the content-addressed store, hash-verified

112487 // Statements
112488 //
112489 function emitBlock(node) {
112490 emitBlockStatements(node, /*forceSingleLine*/ !node.multiLine && isEmptyBlock(node));
112491 }
112492 function emitBlockStatements(node, forceSingleLine) {
112493 emitTokenWithComment(18 /* SyntaxKind.OpenBraceToken */, node.pos, writePunctuation, /*contextNode*/ node);
112494 var format = forceSingleLine || ts.getEmitFlags(node) & 1 /* EmitFlags.SingleLine */ ? 768 /* ListFormat.SingleLineBlockStatements */ : 129 /* ListFormat.MultiLineBlockStatements */;

Callers 1

Calls 2

emitBlockStatementsFunction · 0.85
isEmptyBlockFunction · 0.85

Tested by

no test coverage detected