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

Function getSwitchClauseTypes

test/fixtures/snapshot/typescript.js:69827–69837  ·  view source on GitHub ↗
(switchStatement)

Source from the content-addressed store, hash-verified

69825 return neverType;
69826 }
69827 function getSwitchClauseTypes(switchStatement) {
69828 var links = getNodeLinks(switchStatement);
69829 if (!links.switchTypes) {
69830 links.switchTypes = [];
69831 for (var _i = 0, _a = switchStatement.caseBlock.clauses; _i < _a.length; _i++) {
69832 var clause = _a[_i];
69833 links.switchTypes.push(getTypeOfSwitchClause(clause));
69834 }
69835 }
69836 return links.switchTypes;
69837 }
69838 function getSwitchClauseTypeOfWitnesses(switchStatement, retainDefault) {
69839 var witnesses = [];
69840 for (var _i = 0, _a = switchStatement.caseBlock.clauses; _i < _a.length; _i++) {

Calls 3

getNodeLinksFunction · 0.85
getTypeOfSwitchClauseFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected