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

Function updateIfStatement

test/fixtures/snapshot/typescript.js:24834–24840  ·  view source on GitHub ↗
(node, expression, thenStatement, elseStatement)

Source from the content-addressed store, hash-verified

24832 }
24833 // @api
24834 function updateIfStatement(node, expression, thenStatement, elseStatement) {
24835 return node.expression !== expression
24836 || node.thenStatement !== thenStatement
24837 || node.elseStatement !== elseStatement
24838 ? update(createIfStatement(expression, thenStatement, elseStatement), node)
24839 : node;
24840 }
24841 // @api
24842 function createDoStatement(statement, expression) {
24843 var node = createBaseNode(240 /* SyntaxKind.DoStatement */);

Callers

nothing calls this directly

Calls 2

createIfStatementFunction · 0.85
updateFunction · 0.70

Tested by

no test coverage detected