| 89480 | /*initializer*/ undefined); |
| 89481 | } |
| 89482 | function visitFunctionBody(node, visitor, context, nodeVisitor) { |
| 89483 | if (nodeVisitor === void 0) { nodeVisitor = visitNode; } |
| 89484 | context.resumeLexicalEnvironment(); |
| 89485 | var updated = nodeVisitor(node, visitor, ts.isConciseBody); |
| 89486 | var declarations = context.endLexicalEnvironment(); |
| 89487 | if (ts.some(declarations)) { |
| 89488 | if (!updated) { |
| 89489 | return context.factory.createBlock(declarations); |
| 89490 | } |
| 89491 | var block = context.factory.converters.convertToFunctionBlock(updated); |
| 89492 | var statements = ts.factory.mergeLexicalEnvironment(block.statements, declarations); |
| 89493 | return context.factory.updateBlock(block, statements); |
| 89494 | } |
| 89495 | return updated; |
| 89496 | } |
| 89497 | ts.visitFunctionBody = visitFunctionBody; |
| 89498 | /** |
| 89499 | * Visits an iteration body, adding any block-scoped variables required by the transformation. |