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

Function getEnclosingIterationStatement

test/fixtures/snapshot/typescript.js:71816–71818  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

71814 return ts.findAncestor(node, function (n) { return n === container ? "quit" : n === container.initializer || n === container.condition || n === container.incrementor || n === container.statement; });
71815 }
71816 function getEnclosingIterationStatement(node) {
71817 return ts.findAncestor(node, function (n) { return (!n || ts.nodeStartsNewLexicalEnvironment(n)) ? "quit" : ts.isIterationStatement(n, /*lookInLabeledStatements*/ false); });
71818 }
71819 function checkNestedBlockScopedBinding(node, symbol) {
71820 if (languageVersion >= 2 /* ScriptTarget.ES2015 */ ||
71821 (symbol.flags & (2 /* SymbolFlags.BlockScopedVariable */ | 32 /* SymbolFlags.Class */)) === 0 ||

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…