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

Function tryAddPropertyAssignment

test/fixtures/snapshot/typescript.js:26724–26730  ·  view source on GitHub ↗
(properties, propertyName, expression)

Source from the content-addressed store, hash-verified

26722 return createGlobalMethodCall("Reflect", "set", receiver ? [target, propertyKey, value, receiver] : [target, propertyKey, value]);
26723 }
26724 function tryAddPropertyAssignment(properties, propertyName, expression) {
26725 if (expression) {
26726 properties.push(createPropertyAssignment(propertyName, expression));
26727 return true;
26728 }
26729 return false;
26730 }
26731 function createPropertyDescriptor(attributes, singleLine) {
26732 var properties = [];
26733 tryAddPropertyAssignment(properties, "enumerable", asExpression(attributes.enumerable));

Callers 1

createPropertyDescriptorFunction · 0.85

Calls 2

createPropertyAssignmentFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected