* Creates a statement that can be used indicate a Break operation to the provided label. * * @param label A label. * @param location An optional source map location for the statement.
(label, location)
| 103797 | * @param location An optional source map location for the statement. |
| 103798 | */ |
| 103799 | function createInlineBreak(label, location) { |
| 103800 | ts.Debug.assertLessThan(0, label, "Invalid label"); |
| 103801 | return ts.setTextRange(factory.createReturnStatement(factory.createArrayLiteralExpression([ |
| 103802 | createInstruction(3 /* Instruction.Break */), |
| 103803 | createLabel(label) |
| 103804 | ])), location); |
| 103805 | } |
| 103806 | /** |
| 103807 | * Creates a statement that can be used indicate a Return operation. |
| 103808 | * |
no test coverage detected
searching dependent graphs…