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

Function endLoopBlock

test/fixtures/snapshot/typescript.js:103601–103608  ·  view source on GitHub ↗

* Ends a code block that supports `break` or `continue` statements that are defined in * generated code or in the source tree.

()

Source from the content-addressed store, hash-verified

103599 * generated code or in the source tree.
103600 */
103601 function endLoopBlock() {
103602 ts.Debug.assert(peekBlockKind() === 3 /* CodeBlockKind.Loop */);
103603 var block = endBlock();
103604 var breakLabel = block.breakLabel;
103605 if (!block.isScript) {
103606 markLabel(breakLabel);
103607 }
103608 }
103609 /**
103610 * Begins a code block that supports `break` statements that are defined in the source
103611 * tree and not from generated code.

Callers 8

visitDoStatementFunction · 0.85
visitWhileStatementFunction · 0.85
visitForStatementFunction · 0.85
visitForInStatementFunction · 0.85

Calls 4

peekBlockKindFunction · 0.85
endBlockFunction · 0.85
markLabelFunction · 0.85
assertMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…