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

Function visitBlock

test/fixtures/snapshot/typescript.js:99899–99910  ·  view source on GitHub ↗
(node, isFunctionBody)

Source from the content-addressed store, hash-verified

99897 return block;
99898 }
99899 function visitBlock(node, isFunctionBody) {
99900 if (isFunctionBody) {
99901 // A function body is not a block scope.
99902 return ts.visitEachChild(node, visitor, context);
99903 }
99904 var ancestorFacts = hierarchyFacts & 256 /* HierarchyFacts.IterationStatement */
99905 ? enterSubtree(7104 /* HierarchyFacts.IterationStatementBlockExcludes */, 512 /* HierarchyFacts.IterationStatementBlockIncludes */)
99906 : enterSubtree(6976 /* HierarchyFacts.BlockExcludes */, 128 /* HierarchyFacts.BlockIncludes */);
99907 var updated = ts.visitEachChild(node, visitor, context);
99908 exitSubtree(ancestorFacts, 0 /* HierarchyFacts.None */, 0 /* HierarchyFacts.None */);
99909 return updated;
99910 }
99911 /**
99912 * Visits an ExpressionStatement that contains a destructuring assignment.
99913 *

Callers 2

visitorWorkerFunction · 0.85
topLevelNestedVisitorFunction · 0.85

Calls 2

enterSubtreeFunction · 0.85
exitSubtreeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…