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

Function endSwitchBlock

test/fixtures/snapshot/typescript.js:103638–103645  ·  view source on GitHub ↗

* Ends a code block that supports `break` statements that are defined in generated code.

()

Source from the content-addressed store, hash-verified

103636 * Ends a code block that supports `break` statements that are defined in generated code.
103637 */
103638 function endSwitchBlock() {
103639 ts.Debug.assert(peekBlockKind() === 2 /* CodeBlockKind.Switch */);
103640 var block = endBlock();
103641 var breakLabel = block.breakLabel;
103642 if (!block.isScript) {
103643 markLabel(breakLabel);
103644 }
103645 }
103646 function beginScriptLabeledBlock(labelText) {
103647 beginBlock({
103648 kind: 4 /* CodeBlockKind.Labeled */,

Callers 2

visitSwitchStatementFunction · 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…