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

Function createShorthandPropertyAssignment

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

Source from the content-addressed store, hash-verified

26307 }
26308 // @api
26309 function createShorthandPropertyAssignment(name, objectAssignmentInitializer) {
26310 var node = createBaseNamedDeclaration(297 /* SyntaxKind.ShorthandPropertyAssignment */,
26311 /*decorators*/ undefined,
26312 /*modifiers*/ undefined, name);
26313 node.objectAssignmentInitializer = objectAssignmentInitializer && parenthesizerRules().parenthesizeExpressionForDisallowedComma(objectAssignmentInitializer);
26314 node.transformFlags |=
26315 propagateChildFlags(node.objectAssignmentInitializer) |
26316 1024 /* TransformFlags.ContainsES2015 */;
26317 return node;
26318 }
26319 function finishUpdateShorthandPropertyAssignment(updated, original) {
26320 // copy children used only for error reporting
26321 if (original.decorators)

Callers 1

Calls 2

propagateChildFlagsFunction · 0.85

Tested by

no test coverage detected