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

Function updateCallExpression

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

Source from the content-addressed store, hash-verified

24141 }
24142 // @api
24143 function updateCallExpression(node, expression, typeArguments, argumentsArray) {
24144 if (ts.isCallChain(node)) {
24145 return updateCallChain(node, expression, node.questionDotToken, typeArguments, argumentsArray);
24146 }
24147 return node.expression !== expression
24148 || node.typeArguments !== typeArguments
24149 || node.arguments !== argumentsArray
24150 ? update(createCallExpression(expression, typeArguments, argumentsArray), node)
24151 : node;
24152 }
24153 // @api
24154 function createCallChain(expression, questionDotToken, typeArguments, argumentsArray) {
24155 var node = createBaseExpression(208 /* SyntaxKind.CallExpression */);

Callers

nothing calls this directly

Calls 3

updateCallChainFunction · 0.85
createCallExpressionFunction · 0.85
updateFunction · 0.70

Tested by

no test coverage detected