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

Function emitBlockStatements

test/fixtures/snapshot/typescript.js:112492–112497  ·  view source on GitHub ↗
(node, forceSingleLine)

Source from the content-addressed store, hash-verified

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 */;
112495 emitList(node, node.statements, format);
112496 emitTokenWithComment(19 /* SyntaxKind.CloseBraceToken */, node.statements.end, writePunctuation, /*contextNode*/ node, /*indentLeading*/ !!(format & 1 /* ListFormat.MultiLine */));
112497 }
112498 function emitVariableStatement(node) {
112499 emitModifiers(node, node.modifiers);
112500 emit(node.declarationList);

Callers 2

emitBlockFunction · 0.85
emitModuleBlockFunction · 0.85

Calls 2

emitTokenWithCommentFunction · 0.85
emitListFunction · 0.85

Tested by

no test coverage detected