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

Function hasImmediateContainingLabeledBlock

test/fixtures/snapshot/typescript.js:103695–103708  ·  view source on GitHub ↗
(labelText, start)

Source from the content-addressed store, hash-verified

103693 return block.kind === 3 /* CodeBlockKind.Loop */;
103694 }
103695 function hasImmediateContainingLabeledBlock(labelText, start) {
103696 for (var j = start; j >= 0; j--) {
103697 var containingBlock = blockStack[j];
103698 if (supportsLabeledBreakOrContinue(containingBlock)) {
103699 if (containingBlock.labelText === labelText) {
103700 return true;
103701 }
103702 }
103703 else {
103704 break;
103705 }
103706 }
103707 return false;
103708 }
103709 /**
103710 * Finds the label that is the target for a `break` statement.
103711 *

Callers 2

findBreakTargetFunction · 0.85
findContinueTargetFunction · 0.85

Calls 1

Tested by

no test coverage detected