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

Function updateBaseFunctionLikeDeclaration

test/fixtures/snapshot/typescript.js:22849–22856  ·  view source on GitHub ↗
(updated, original)

Source from the content-addressed store, hash-verified

22847 return node;
22848 }
22849 function updateBaseFunctionLikeDeclaration(updated, original) {
22850 // copy children used only for error reporting
22851 if (original.exclamationToken)
22852 updated.exclamationToken = original.exclamationToken;
22853 if (original.typeArguments)
22854 updated.typeArguments = original.typeArguments;
22855 return updateBaseSignatureDeclaration(updated, original);
22856 }
22857 function createBaseInterfaceOrClassLikeDeclaration(kind, decorators, modifiers, name, typeParameters, heritageClauses) {
22858 var node = createBaseGenericNamedDeclaration(kind, decorators, modifiers, name, typeParameters);
22859 node.heritageClauses = asNodeArray(heritageClauses);

Callers 7

updateMethodDeclarationFunction · 0.85
updateFunctionExpressionFunction · 0.85
updateArrowFunctionFunction · 0.85

Calls 1

Tested by

no test coverage detected