MCPcopy Create free account
hub / github.com/nodejs/node / bindBreakOrContinueStatement

Function bindBreakOrContinueStatement

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

Source from the content-addressed store, hash-verified

45655 }
45656 }
45657 function bindBreakOrContinueStatement(node) {
45658 bind(node.label);
45659 if (node.label) {
45660 var activeLabel = findActiveLabel(node.label.escapedText);
45661 if (activeLabel) {
45662 activeLabel.referenced = true;
45663 bindBreakOrContinueFlow(node, activeLabel.breakTarget, activeLabel.continueTarget);
45664 }
45665 }
45666 else {
45667 bindBreakOrContinueFlow(node, currentBreakTarget, currentContinueTarget);
45668 }
45669 }
45670 function bindTryStatement(node) {
45671 // We conservatively assume that *any* code in the try block can cause an exception, but we only need
45672 // to track code that causes mutations (because only mutations widen the possible control flow type of

Callers 1

bindChildrenFunction · 0.85

Calls 3

findActiveLabelFunction · 0.85
bindBreakOrContinueFlowFunction · 0.85
bindFunction · 0.70

Tested by

no test coverage detected