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

Function updateTypeAssertion

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

Source from the content-addressed store, hash-verified

24246 }
24247 // @api
24248 function updateTypeAssertion(node, type, expression) {
24249 return node.type !== type
24250 || node.expression !== expression
24251 ? update(createTypeAssertion(type, expression), node)
24252 : node;
24253 }
24254 // @api
24255 function createParenthesizedExpression(expression) {
24256 var node = createBaseExpression(212 /* SyntaxKind.ParenthesizedExpression */);

Callers 1

updateOuterExpressionFunction · 0.85

Calls 2

createTypeAssertionFunction · 0.85
updateFunction · 0.70

Tested by

no test coverage detected