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

Function endExceptionBlock

test/fixtures/snapshot/typescript.js:103551–103564  ·  view source on GitHub ↗

* Ends the code block for a generated `try` statement.

()

Source from the content-addressed store, hash-verified

103549 * Ends the code block for a generated `try` statement.
103550 */
103551 function endExceptionBlock() {
103552 ts.Debug.assert(peekBlockKind() === 0 /* CodeBlockKind.Exception */);
103553 var exception = endBlock();
103554 var state = exception.state;
103555 if (state < 2 /* ExceptionBlockState.Finally */) {
103556 emitBreak(exception.endLabel);
103557 }
103558 else {
103559 emitEndfinally();
103560 }
103561 markLabel(exception.endLabel);
103562 emitNop();
103563 exception.state = 3 /* ExceptionBlockState.Done */;
103564 }
103565 /**
103566 * Begins a code block that supports `break` or `continue` statements that are defined in
103567 * the source tree and not from generated code.

Callers 1

Calls 7

peekBlockKindFunction · 0.85
endBlockFunction · 0.85
emitBreakFunction · 0.85
emitEndfinallyFunction · 0.85
markLabelFunction · 0.85
emitNopFunction · 0.85
assertMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…