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

Function updatePropertyAssignment

test/fixtures/snapshot/typescript.js:26302–26307  ·  view source on GitHub ↗
(node, name, initializer)

Source from the content-addressed store, hash-verified

26300 }
26301 // @api
26302 function updatePropertyAssignment(node, name, initializer) {
26303 return node.name !== name
26304 || node.initializer !== initializer
26305 ? finishUpdatePropertyAssignment(createPropertyAssignment(name, initializer), node)
26306 : node;
26307 }
26308 // @api
26309 function createShorthandPropertyAssignment(name, objectAssignmentInitializer) {
26310 var node = createBaseNamedDeclaration(297 /* SyntaxKind.ShorthandPropertyAssignment */,

Callers

nothing calls this directly

Calls 2

createPropertyAssignmentFunction · 0.85

Tested by

no test coverage detected