MCPcopy Create free account
hub / github.com/nodejs/node / updateBinaryExpression

Function updateBinaryExpression

test/fixtures/snapshot/typescript.js:24487–24493  ·  view source on GitHub ↗
(node, left, operator, right)

Source from the content-addressed store, hash-verified

24485 }
24486 // @api
24487 function updateBinaryExpression(node, left, operator, right) {
24488 return node.left !== left
24489 || node.operatorToken !== operator
24490 || node.right !== right
24491 ? update(createBinaryExpression(left, operator, right), node)
24492 : node;
24493 }
24494 // @api
24495 function createConditionalExpression(condition, questionToken, whenTrue, colonToken, whenFalse) {
24496 var node = createBaseExpression(222 /* SyntaxKind.ConditionalExpression */);

Callers

nothing calls this directly

Calls 2

createBinaryExpressionFunction · 0.85
updateFunction · 0.70

Tested by

no test coverage detected