MCPcopy Index your code
hub / github.com/nodejs/node / visitLexicalEnvironment

Function visitLexicalEnvironment

test/fixtures/snapshot/typescript.js:89404–89411  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

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; }

Callers 1

visitEachChildFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected