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

Function countInitialNodesWithoutYield

test/fixtures/snapshot/typescript.js:103337–103345  ·  view source on GitHub ↗
(nodes)

Source from the content-addressed store, hash-verified

103335 return !!node && (node.transformFlags & 524288 /* TransformFlags.ContainsYield */) !== 0;
103336 }
103337 function countInitialNodesWithoutYield(nodes) {
103338 var numNodes = nodes.length;
103339 for (var i = 0; i < numNodes; i++) {
103340 if (containsYield(nodes[i])) {
103341 return i;
103342 }
103343 }
103344 return -1;
103345 }
103346 function onSubstituteNode(hint, node) {
103347 node = previousOnSubstituteNode(hint, node);
103348 if (hint === 1 /* EmitHint.Expression */) {

Callers 2

visitElementsFunction · 0.85

Calls 1

containsYieldFunction · 0.70

Tested by

no test coverage detected