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

Function getPartOfForStatementContainingNode

test/fixtures/snapshot/typescript.js:71813–71815  ·  view source on GitHub ↗
(node, container)

Source from the content-addressed store, hash-verified

71811 return !!ts.findAncestor(node, function (n) { return n === threshold ? "quit" : ts.isFunctionLike(n) || (n.parent && ts.isPropertyDeclaration(n.parent) && !ts.hasStaticModifier(n.parent) && n.parent.initializer === n); });
71812 }
71813 function getPartOfForStatementContainingNode(node, container) {
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 }

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected