* Starts a new lexical environment and visits a statement list, ending the lexical environment * and merging hoisted declarations upon completion.
(statements, visitor, context, start, ensureUseStrict, nodesVisitor)
| 89402 | * and merging hoisted declarations upon completion. |
| 89403 | */ |
| 89404 | function visitLexicalEnvironment(statements, visitor, context, start, ensureUseStrict, nodesVisitor) { |
| 89405 | if (nodesVisitor === void 0) { nodesVisitor = visitNodes; } |
| 89406 | context.startLexicalEnvironment(); |
| 89407 | statements = nodesVisitor(statements, visitor, ts.isStatement, start); |
| 89408 | if (ensureUseStrict) |
| 89409 | statements = context.factory.ensureUseStrict(statements); |
| 89410 | return ts.factory.mergeLexicalEnvironment(statements, context.endLexicalEnvironment()); |
| 89411 | } |
| 89412 | ts.visitLexicalEnvironment = visitLexicalEnvironment; |
| 89413 | function visitParameterList(nodes, visitor, context, nodesVisitor) { |
| 89414 | if (nodesVisitor === void 0) { nodesVisitor = visitNodes; } |