* 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)
| 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. |
no test coverage detected
searching dependent graphs…