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

Function createLabel

test/fixtures/snapshot/typescript.js:103769–103784  ·  view source on GitHub ↗

* Creates an expression that can be used to indicate the value for a label. * * @param label A label.

(label)

Source from the content-addressed store, hash-verified

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 */

Callers 5

createInlineBreakFunction · 0.85
appendLabelFunction · 0.85
writeBreakFunction · 0.85
writeBreakWhenTrueFunction · 0.85
writeBreakWhenFalseFunction · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…