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

Function updateShorthandPropertyAssignment

test/fixtures/snapshot/typescript.js:26334–26339  ·  view source on GitHub ↗
(node, name, objectAssignmentInitializer)

Source from the content-addressed store, hash-verified

26332 }
26333 // @api
26334 function updateShorthandPropertyAssignment(node, name, objectAssignmentInitializer) {
26335 return node.name !== name
26336 || node.objectAssignmentInitializer !== objectAssignmentInitializer
26337 ? finishUpdateShorthandPropertyAssignment(createShorthandPropertyAssignment(name, objectAssignmentInitializer), node)
26338 : node;
26339 }
26340 // @api
26341 function createSpreadAssignment(expression) {
26342 var node = createBaseNode(298 /* SyntaxKind.SpreadAssignment */);

Callers

nothing calls this directly

Tested by

no test coverage detected