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

Function updateConditionalExpression

test/fixtures/snapshot/typescript.js:24511–24519  ·  view source on GitHub ↗
(node, condition, questionToken, whenTrue, colonToken, whenFalse)

Source from the content-addressed store, hash-verified

24509 }
24510 // @api
24511 function updateConditionalExpression(node, condition, questionToken, whenTrue, colonToken, whenFalse) {
24512 return node.condition !== condition
24513 || node.questionToken !== questionToken
24514 || node.whenTrue !== whenTrue
24515 || node.colonToken !== colonToken
24516 || node.whenFalse !== whenFalse
24517 ? update(createConditionalExpression(condition, questionToken, whenTrue, colonToken, whenFalse), node)
24518 : node;
24519 }
24520 // @api
24521 function createTemplateExpression(head, templateSpans) {
24522 var node = createBaseExpression(223 /* SyntaxKind.TemplateExpression */);

Callers

nothing calls this directly

Calls 2

updateFunction · 0.70

Tested by

no test coverage detected