MCPcopy Create free account
hub / github.com/nodejs/node / restoreEnclosingLabel

Function restoreEnclosingLabel

test/fixtures/snapshot/typescript.js:26780–26791  ·  view source on GitHub ↗
(node, outermostLabeledStatement, afterRestoreLabelCallback)

Source from the content-addressed store, hash-verified

26778 return innerExpression;
26779 }
26780 function restoreEnclosingLabel(node, outermostLabeledStatement, afterRestoreLabelCallback) {
26781 if (!outermostLabeledStatement) {
26782 return node;
26783 }
26784 var updated = updateLabeledStatement(outermostLabeledStatement, outermostLabeledStatement.label, ts.isLabeledStatement(outermostLabeledStatement.statement)
26785 ? restoreEnclosingLabel(node, outermostLabeledStatement.statement)
26786 : node);
26787 if (afterRestoreLabelCallback) {
26788 afterRestoreLabelCallback(outermostLabeledStatement);
26789 }
26790 return updated;
26791 }
26792 function shouldBeCapturedInTempVariable(node, cacheIdentifiers) {
26793 var target = ts.skipParentheses(node);
26794 switch (target.kind) {

Callers

nothing calls this directly

Calls 1

updateLabeledStatementFunction · 0.85

Tested by

no test coverage detected