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

Function createPropertyAssignment

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

Source from the content-addressed store, hash-verified

26277 //
26278 // @api
26279 function createPropertyAssignment(name, initializer) {
26280 var node = createBaseNamedDeclaration(296 /* SyntaxKind.PropertyAssignment */,
26281 /*decorators*/ undefined,
26282 /*modifiers*/ undefined, name);
26283 node.initializer = parenthesizerRules().parenthesizeExpressionForDisallowedComma(initializer);
26284 node.transformFlags |=
26285 propagateChildFlags(node.name) |
26286 propagateChildFlags(node.initializer);
26287 return node;
26288 }
26289 function finishUpdatePropertyAssignment(updated, original) {
26290 // copy children used only for error reporting
26291 if (original.decorators)

Callers 2

updatePropertyAssignmentFunction · 0.85
tryAddPropertyAssignmentFunction · 0.85

Calls 2

propagateChildFlagsFunction · 0.85

Tested by

no test coverage detected