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

Function transformAccessorsToStatement

test/fixtures/snapshot/typescript.js:99661–99669  ·  view source on GitHub ↗

* Transforms a set of related of get/set accessors into a statement for a class body function. * * @param receiver The receiver for the member. * @param accessors The set of related get/set accessors.

(receiver, accessors, container)

Source from the content-addressed store, hash-verified

99659 * @param accessors The set of related get/set accessors.
99660 */
99661 function transformAccessorsToStatement(receiver, accessors, container) {
99662 var statement = factory.createExpressionStatement(transformAccessorsToExpression(receiver, accessors, container, /*startsOnNewLine*/ false));
99663 // The location for the statement is used to emit source maps only.
99664 // No comments should be emitted for this statement to align with the
99665 // old emitter.
99666 ts.setEmitFlags(statement, 1536 /* EmitFlags.NoComments */);
99667 ts.setSourceMapRange(statement, ts.getSourceMapRange(accessors.firstAccessor));
99668 return statement;
99669 }
99670 /**
99671 * Transforms a set of related get/set accessors into an expression for either a class
99672 * body function or an ObjectLiteralExpression with computed properties.

Callers 1

addClassMembersFunction · 0.85

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…