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

Function createBaseFunctionLikeDeclaration

test/fixtures/snapshot/typescript.js:22841–22848  ·  view source on GitHub ↗
(kind, decorators, modifiers, name, typeParameters, parameters, type, body)

Source from the content-addressed store, hash-verified

22839 return update(updated, original);
22840 }
22841 function createBaseFunctionLikeDeclaration(kind, decorators, modifiers, name, typeParameters, parameters, type, body) {
22842 var node = createBaseSignatureDeclaration(kind, decorators, modifiers, name, typeParameters, parameters, type);
22843 node.body = body;
22844 node.transformFlags |= propagateChildFlags(node.body) & ~16777216 /* TransformFlags.ContainsPossibleTopLevelAwait */;
22845 if (!body)
22846 node.transformFlags |= 1 /* TransformFlags.ContainsTypeScript */;
22847 return node;
22848 }
22849 function updateBaseFunctionLikeDeclaration(updated, original) {
22850 // copy children used only for error reporting
22851 if (original.exclamationToken)

Callers 7

createMethodDeclarationFunction · 0.85
createFunctionExpressionFunction · 0.85
createArrowFunctionFunction · 0.85

Calls 2

propagateChildFlagsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…