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

Function updateWithStatement

test/fixtures/snapshot/typescript.js:25002–25007  ·  view source on GitHub ↗
(node, expression, statement)

Source from the content-addressed store, hash-verified

25000 }
25001 // @api
25002 function updateWithStatement(node, expression, statement) {
25003 return node.expression !== expression
25004 || node.statement !== statement
25005 ? update(createWithStatement(expression, statement), node)
25006 : node;
25007 }
25008 // @api
25009 function createSwitchStatement(expression, caseBlock) {
25010 var node = createBaseNode(249 /* SyntaxKind.SwitchStatement */);

Callers

nothing calls this directly

Calls 2

createWithStatementFunction · 0.85
updateFunction · 0.70

Tested by

no test coverage detected