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

Function updateClassDeclaration

test/fixtures/snapshot/typescript.js:25175–25184  ·  view source on GitHub ↗
(node, decorators, modifiers, name, typeParameters, heritageClauses, members)

Source from the content-addressed store, hash-verified

25173 }
25174 // @api
25175 function updateClassDeclaration(node, decorators, modifiers, name, typeParameters, heritageClauses, members) {
25176 return node.decorators !== decorators
25177 || node.modifiers !== modifiers
25178 || node.name !== name
25179 || node.typeParameters !== typeParameters
25180 || node.heritageClauses !== heritageClauses
25181 || node.members !== members
25182 ? update(createClassDeclaration(decorators, modifiers, name, typeParameters, heritageClauses, members), node)
25183 : node;
25184 }
25185 // @api
25186 function createInterfaceDeclaration(decorators, modifiers, name, typeParameters, heritageClauses, members) {
25187 var node = createBaseInterfaceOrClassLikeDeclaration(258 /* SyntaxKind.InterfaceDeclaration */, decorators, modifiers, name, typeParameters, heritageClauses);

Callers 1

updateModifiersFunction · 0.85

Calls 2

createClassDeclarationFunction · 0.85
updateFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…