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

Function isExhaustiveSwitchStatement

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

Source from the content-addressed store, hash-verified

78008 return facts;
78009 }
78010 function isExhaustiveSwitchStatement(node) {
78011 var links = getNodeLinks(node);
78012 return links.isExhaustive !== undefined ? links.isExhaustive : (links.isExhaustive = computeExhaustiveSwitchStatement(node));
78013 }
78014 function computeExhaustiveSwitchStatement(node) {
78015 if (node.expression.kind === 216 /* SyntaxKind.TypeOfExpression */) {
78016 var operandType = getTypeOfExpression(node.expression.expression);

Callers 2

getTypeAtFlowBranchLabelFunction · 0.85

Calls 2

getNodeLinksFunction · 0.85

Tested by

no test coverage detected