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

Function updateLabeledStatement

test/fixtures/snapshot/typescript.js:25036–25041  ·  view source on GitHub ↗
(node, label, statement)

Source from the content-addressed store, hash-verified

25034 }
25035 // @api
25036 function updateLabeledStatement(node, label, statement) {
25037 return node.label !== label
25038 || node.statement !== statement
25039 ? update(createLabeledStatement(label, statement), node)
25040 : node;
25041 }
25042 // @api
25043 function createThrowStatement(expression) {
25044 var node = createBaseNode(251 /* SyntaxKind.ThrowStatement */);

Callers 1

restoreEnclosingLabelFunction · 0.85

Calls 2

createLabeledStatementFunction · 0.85
updateFunction · 0.70

Tested by

no test coverage detected