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

Function updateBlock

test/fixtures/snapshot/typescript.js:24781–24785  ·  view source on GitHub ↗
(node, statements)

Source from the content-addressed store, hash-verified

24779 }
24780 // @api
24781 function updateBlock(node, statements) {
24782 return node.statements !== statements
24783 ? update(createBlock(statements, node.multiLine), node)
24784 : node;
24785 }
24786 // @api
24787 function createVariableStatement(modifiers, declarationList) {
24788 var node = createBaseDeclaration(237 /* SyntaxKind.VariableStatement */, /*decorators*/ undefined, modifiers);

Callers

nothing calls this directly

Calls 2

createBlockFunction · 0.85
updateFunction · 0.70

Tested by

no test coverage detected