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

Function createClassDeclaration

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

Source from the content-addressed store, hash-verified

25159 }
25160 // @api
25161 function createClassDeclaration(decorators, modifiers, name, typeParameters, heritageClauses, members) {
25162 var node = createBaseClassLikeDeclaration(257 /* SyntaxKind.ClassDeclaration */, decorators, modifiers, name, typeParameters, heritageClauses, members);
25163 if (ts.modifiersToFlags(node.modifiers) & 2 /* ModifierFlags.Ambient */) {
25164 node.transformFlags = 1 /* TransformFlags.ContainsTypeScript */;
25165 }
25166 else {
25167 node.transformFlags |= 1024 /* TransformFlags.ContainsES2015 */;
25168 if (node.transformFlags & 4096 /* TransformFlags.ContainsTypeScriptClassSyntax */) {
25169 node.transformFlags |= 1 /* TransformFlags.ContainsTypeScript */;
25170 }
25171 }
25172 return node;
25173 }
25174 // @api
25175 function updateClassDeclaration(node, decorators, modifiers, name, typeParameters, heritageClauses, members) {
25176 return node.decorators !== decorators

Callers 1

updateClassDeclarationFunction · 0.85

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…