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

Function getTypeOfSwitchClause

test/fixtures/snapshot/typescript.js:69821–69826  ·  view source on GitHub ↗
(clause)

Source from the content-addressed store, hash-verified

69819 getReferenceRoot(parent) : node;
69820 }
69821 function getTypeOfSwitchClause(clause) {
69822 if (clause.kind === 289 /* SyntaxKind.CaseClause */) {
69823 return getRegularTypeOfLiteralType(getTypeOfExpression(clause.expression));
69824 }
69825 return neverType;
69826 }
69827 function getSwitchClauseTypes(switchStatement) {
69828 var links = getNodeLinks(switchStatement);
69829 if (!links.switchTypes) {

Callers 1

getSwitchClauseTypesFunction · 0.85

Calls 2

getTypeOfExpressionFunction · 0.85

Tested by

no test coverage detected