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

Function createBlock

test/fixtures/snapshot/typescript.js:24773–24779  ·  view source on GitHub ↗
(statements, multiLine)

Source from the content-addressed store, hash-verified

24771 //
24772 // @api
24773 function createBlock(statements, multiLine) {
24774 var node = createBaseNode(235 /* SyntaxKind.Block */);
24775 node.statements = createNodeArray(statements);
24776 node.multiLine = multiLine;
24777 node.transformFlags |= propagateChildrenFlags(node.statements);
24778 return node;
24779 }
24780 // @api
24781 function updateBlock(node, statements) {
24782 return node.statements !== statements

Callers 5

updateBlockFunction · 0.85
liftToBlockFunction · 0.85

Calls 3

createBaseNodeFunction · 0.85
createNodeArrayFunction · 0.85
propagateChildrenFlagsFunction · 0.85

Tested by

no test coverage detected