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

Function updateNonNullChain

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

Source from the content-addressed store, hash-verified

24710 }
24711 // @api
24712 function updateNonNullChain(node, expression) {
24713 ts.Debug.assert(!!(node.flags & 32 /* NodeFlags.OptionalChain */), "Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead.");
24714 return node.expression !== expression
24715 ? update(createNonNullChain(expression), node)
24716 : node;
24717 }
24718 // @api
24719 function createMetaProperty(keywordToken, name) {
24720 var node = createBaseExpression(231 /* SyntaxKind.MetaProperty */);

Callers 1

updateNonNullExpressionFunction · 0.85

Calls 3

createNonNullChainFunction · 0.85
assertMethod · 0.80
updateFunction · 0.70

Tested by

no test coverage detected