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

Function createBaseDeclaration

test/fixtures/snapshot/typescript.js:22775–22789  ·  view source on GitHub ↗
(kind, decorators, modifiers)

Source from the content-addressed store, hash-verified

22773 return baseFactory.createBaseNode(kind);
22774 }
22775 function createBaseDeclaration(kind, decorators, modifiers) {
22776 var node = createBaseNode(kind);
22777 node.decorators = asNodeArray(decorators);
22778 node.modifiers = asNodeArray(modifiers);
22779 node.transformFlags |=
22780 propagateChildrenFlags(node.decorators) |
22781 propagateChildrenFlags(node.modifiers);
22782 // NOTE: The following properties are commonly set by the binder and are added here to
22783 // ensure declarations have a stable shape.
22784 node.symbol = undefined; // initialized by binder
22785 node.localSymbol = undefined; // initialized by binder
22786 node.locals = undefined; // initialized by binder
22787 node.nextContainer = undefined; // initialized by binder
22788 return node;
22789 }
22790 function createBaseNamedDeclaration(kind, decorators, modifiers, name) {
22791 var node = createBaseDeclaration(kind, decorators, modifiers);
22792 name = asName(name);

Callers 7

createVariableStatementFunction · 0.85
createModuleDeclarationFunction · 0.85
createImportDeclarationFunction · 0.85
createExportAssignmentFunction · 0.85
createExportDeclarationFunction · 0.85
createMissingDeclarationFunction · 0.85

Calls 3

createBaseNodeFunction · 0.85
asNodeArrayFunction · 0.85
propagateChildrenFlagsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…