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

Function updateCallChain

test/fixtures/snapshot/typescript.js:24176–24184  ·  view source on GitHub ↗
(node, expression, questionDotToken, typeArguments, argumentsArray)

Source from the content-addressed store, hash-verified

24174 }
24175 // @api
24176 function updateCallChain(node, expression, questionDotToken, typeArguments, argumentsArray) {
24177 ts.Debug.assert(!!(node.flags & 32 /* NodeFlags.OptionalChain */), "Cannot update a CallExpression using updateCallChain. Use updateCall instead.");
24178 return node.expression !== expression
24179 || node.questionDotToken !== questionDotToken
24180 || node.typeArguments !== typeArguments
24181 || node.arguments !== argumentsArray
24182 ? update(createCallChain(expression, questionDotToken, typeArguments, argumentsArray), node)
24183 : node;
24184 }
24185 // @api
24186 function createNewExpression(expression, typeArguments, argumentsArray) {
24187 var node = createBaseExpression(209 /* SyntaxKind.NewExpression */);

Callers 1

updateCallExpressionFunction · 0.85

Calls 3

createCallChainFunction · 0.85
assertMethod · 0.80
updateFunction · 0.70

Tested by

no test coverage detected