* Creates an expression that can be used to indicate the value for a label. * * @param label A label.
(label)
| 103767 | * @param label A label. |
| 103768 | */ |
| 103769 | function createLabel(label) { |
| 103770 | if (label !== undefined && label > 0) { |
| 103771 | if (labelExpressions === undefined) { |
| 103772 | labelExpressions = []; |
| 103773 | } |
| 103774 | var expression = factory.createNumericLiteral(-1); |
| 103775 | if (labelExpressions[label] === undefined) { |
| 103776 | labelExpressions[label] = [expression]; |
| 103777 | } |
| 103778 | else { |
| 103779 | labelExpressions[label].push(expression); |
| 103780 | } |
| 103781 | return expression; |
| 103782 | } |
| 103783 | return factory.createOmittedExpression(); |
| 103784 | } |
| 103785 | /** |
| 103786 | * Creates a numeric literal for the provided instruction. |
| 103787 | */ |
no test coverage detected
searching dependent graphs…