MCPcopy Create free account
hub / github.com/nodejs/node / resumeLexicalEnvironment

Function resumeLexicalEnvironment

test/fixtures/snapshot/typescript.js:109802–109807  ·  view source on GitHub ↗

Resumes a suspended lexical environment, usually before visiting a function body.

()

Source from the content-addressed store, hash-verified

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.

Calls 1

assertMethod · 0.80

Tested by

no test coverage detected