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

Function flushFinalLabel

test/fixtures/snapshot/typescript.js:104008–104018  ·  view source on GitHub ↗

* Flush the final label of the generator function body.

(operationIndex)

Source from the content-addressed store, hash-verified

104006 * Flush the final label of the generator function body.
104007 */
104008 function flushFinalLabel(operationIndex) {
104009 if (isFinalLabelReachable(operationIndex)) {
104010 tryEnterLabel(operationIndex);
104011 withBlockStack = undefined;
104012 writeReturn(/*expression*/ undefined, /*operationLocation*/ undefined);
104013 }
104014 if (statements && clauses) {
104015 appendLabel(/*markLabelEnd*/ false);
104016 }
104017 updateLabelExpressions();
104018 }
104019 /**
104020 * Tests whether the final label of the generator function body
104021 * is reachable by user code.

Callers 1

buildStatementsFunction · 0.85

Calls 5

isFinalLabelReachableFunction · 0.85
tryEnterLabelFunction · 0.85
writeReturnFunction · 0.85
appendLabelFunction · 0.85
updateLabelExpressionsFunction · 0.85

Tested by

no test coverage detected