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

Function updateArrowFunction

test/fixtures/snapshot/typescript.js:24316–24325  ·  view source on GitHub ↗
(node, modifiers, typeParameters, parameters, type, equalsGreaterThanToken, body)

Source from the content-addressed store, hash-verified

24314 }
24315 // @api
24316 function updateArrowFunction(node, modifiers, typeParameters, parameters, type, equalsGreaterThanToken, body) {
24317 return node.modifiers !== modifiers
24318 || node.typeParameters !== typeParameters
24319 || node.parameters !== parameters
24320 || node.type !== type
24321 || node.equalsGreaterThanToken !== equalsGreaterThanToken
24322 || node.body !== body
24323 ? updateBaseFunctionLikeDeclaration(createArrowFunction(modifiers, typeParameters, parameters, type, equalsGreaterThanToken, body), node)
24324 : node;
24325 }
24326 // @api
24327 function createDeleteExpression(expression) {
24328 var node = createBaseExpression(215 /* SyntaxKind.DeleteExpression */);

Callers 1

updateModifiersFunction · 0.85

Calls 2

createArrowFunctionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…