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

Function updateModuleDeclaration

test/fixtures/snapshot/typescript.js:25259–25266  ·  view source on GitHub ↗
(node, decorators, modifiers, name, body)

Source from the content-addressed store, hash-verified

25257 }
25258 // @api
25259 function updateModuleDeclaration(node, decorators, modifiers, name, body) {
25260 return node.decorators !== decorators
25261 || node.modifiers !== modifiers
25262 || node.name !== name
25263 || node.body !== body
25264 ? update(createModuleDeclaration(decorators, modifiers, name, body, node.flags), node)
25265 : node;
25266 }
25267 // @api
25268 function createModuleBlock(statements) {
25269 var node = createBaseNode(262 /* SyntaxKind.ModuleBlock */);

Callers 1

updateModifiersFunction · 0.85

Calls 2

createModuleDeclarationFunction · 0.85
updateFunction · 0.70

Tested by

no test coverage detected