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

Function tryEnterLabel

test/fixtures/snapshot/typescript.js:104091–104109  ·  view source on GitHub ↗

* Tries to enter into a new label at the current operation index.

(operationIndex)

Source from the content-addressed store, hash-verified

104089 * Tries to enter into a new label at the current operation index.
104090 */
104091 function tryEnterLabel(operationIndex) {
104092 if (!labelOffsets) {
104093 return;
104094 }
104095 for (var label = 0; label < labelOffsets.length; label++) {
104096 if (labelOffsets[label] === operationIndex) {
104097 flushLabel();
104098 if (labelNumbers === undefined) {
104099 labelNumbers = [];
104100 }
104101 if (labelNumbers[labelNumber] === undefined) {
104102 labelNumbers[labelNumber] = [label];
104103 }
104104 else {
104105 labelNumbers[labelNumber].push(label);
104106 }
104107 }
104108 }
104109 }
104110 /**
104111 * Updates literal expressions for labels with actual label numbers.
104112 */

Callers 2

flushFinalLabelFunction · 0.85
writeOperationFunction · 0.85

Calls 2

flushLabelFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected