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

Function updatePropertyAccessExpression

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

Source from the content-addressed store, hash-verified

24031 }
24032 // @api
24033 function updatePropertyAccessExpression(node, expression, name) {
24034 if (ts.isPropertyAccessChain(node)) {
24035 return updatePropertyAccessChain(node, expression, node.questionDotToken, ts.cast(name, ts.isIdentifier));
24036 }
24037 return node.expression !== expression
24038 || node.name !== name
24039 ? update(createPropertyAccessExpression(expression, name), node)
24040 : node;
24041 }
24042 // @api
24043 function createPropertyAccessChain(expression, questionDotToken, name) {
24044 var node = createBaseExpression(206 /* SyntaxKind.PropertyAccessExpression */);

Callers

nothing calls this directly

Calls 3

updateFunction · 0.70

Tested by

no test coverage detected