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

Function updateConstructorDeclaration

test/fixtures/snapshot/typescript.js:23411–23418  ·  view source on GitHub ↗
(node, decorators, modifiers, parameters, body)

Source from the content-addressed store, hash-verified

23409 }
23410 // @api
23411 function updateConstructorDeclaration(node, decorators, modifiers, parameters, body) {
23412 return node.decorators !== decorators
23413 || node.modifiers !== modifiers
23414 || node.parameters !== parameters
23415 || node.body !== body
23416 ? updateBaseFunctionLikeDeclaration(createConstructorDeclaration(decorators, modifiers, parameters, body), node)
23417 : node;
23418 }
23419 // @api
23420 function createGetAccessorDeclaration(decorators, modifiers, name, parameters, type, body) {
23421 return createBaseFunctionLikeDeclaration(172 /* SyntaxKind.GetAccessor */, decorators, modifiers, name,

Callers 1

updateModifiersFunction · 0.85

Tested by

no test coverage detected