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

Function visitSwitchStatement

test/fixtures/snapshot/typescript.js:98780–98790  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

98778 return factory.updateSourceFile(node, ts.setTextRange(factory.createNodeArray(ts.concatenate(prologue, statements)), node.statements));
98779 }
98780 function visitSwitchStatement(node) {
98781 if (convertedLoopState !== undefined) {
98782 var savedAllowedNonLabeledJumps = convertedLoopState.allowedNonLabeledJumps;
98783 // for switch statement allow only non-labeled break
98784 convertedLoopState.allowedNonLabeledJumps |= 2 /* Jump.Break */;
98785 var result = ts.visitEachChild(node, visitor, context);
98786 convertedLoopState.allowedNonLabeledJumps = savedAllowedNonLabeledJumps;
98787 return result;
98788 }
98789 return ts.visitEachChild(node, visitor, context);
98790 }
98791 function visitCaseBlock(node) {
98792 var ancestorFacts = enterSubtree(7104 /* HierarchyFacts.BlockScopeExcludes */, 0 /* HierarchyFacts.BlockScopeIncludes */);
98793 var updated = ts.visitEachChild(node, visitor, context);

Callers 3

visitorWorkerFunction · 0.85
topLevelNestedVisitorFunction · 0.85

Calls 2

beginScriptSwitchBlockFunction · 0.85
endSwitchBlockFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…