Resumes a suspended lexical environment, usually before visiting a function body.
()
| 109800 | } |
| 109801 | /** Resumes a suspended lexical environment, usually before visiting a function body. */ |
| 109802 | function resumeLexicalEnvironment() { |
| 109803 | ts.Debug.assert(state > 0 /* TransformationState.Uninitialized */, "Cannot modify the lexical environment during initialization."); |
| 109804 | ts.Debug.assert(state < 2 /* TransformationState.Completed */, "Cannot modify the lexical environment after transformation has completed."); |
| 109805 | ts.Debug.assert(lexicalEnvironmentSuspended, "Lexical environment is not suspended."); |
| 109806 | lexicalEnvironmentSuspended = false; |
| 109807 | } |
| 109808 | /** |
| 109809 | * Ends a lexical environment. The previous set of hoisted declarations are restored and |
| 109810 | * any hoisted declarations added in this environment are returned. |
no test coverage detected