(block, statement)
| 101001 | return updated; |
| 101002 | } |
| 101003 | function addStatementToStartOfBlock(block, statement) { |
| 101004 | var transformedStatements = ts.visitNodes(block.statements, visitor, ts.isStatement); |
| 101005 | return factory.updateBlock(block, __spreadArray([statement], transformedStatements, true)); |
| 101006 | } |
| 101007 | /** |
| 101008 | * Visits a MethodDeclaration of an ObjectLiteralExpression and transforms it into a |
| 101009 | * PropertyAssignment. |