* Ends the code block for a generated `try` statement.
()
| 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. |
no test coverage detected
searching dependent graphs…