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

Function createWhileStatement

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

Source from the content-addressed store, hash-verified

24857 }
24858 // @api
24859 function createWhileStatement(expression, statement) {
24860 var node = createBaseNode(241 /* SyntaxKind.WhileStatement */);
24861 node.expression = expression;
24862 node.statement = asEmbeddedStatement(statement);
24863 node.transformFlags |=
24864 propagateChildFlags(node.expression) |
24865 propagateChildFlags(node.statement);
24866 return node;
24867 }
24868 // @api
24869 function updateWhileStatement(node, expression, statement) {
24870 return node.expression !== expression

Callers 1

updateWhileStatementFunction · 0.85

Calls 3

createBaseNodeFunction · 0.85
asEmbeddedStatementFunction · 0.85
propagateChildFlagsFunction · 0.85

Tested by

no test coverage detected