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

Function parseCaseClause

test/fixtures/snapshot/typescript.js:35988–35996  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35986 return withJSDoc(finishNode(factory.createWithStatement(expression, statement), pos), hasJSDoc);
35987 }
35988 function parseCaseClause() {
35989 var pos = getNodePos();
35990 var hasJSDoc = hasPrecedingJSDocComment();
35991 parseExpected(82 /* SyntaxKind.CaseKeyword */);
35992 var expression = allowInAnd(parseExpression);
35993 parseExpected(58 /* SyntaxKind.ColonToken */);
35994 var statements = parseList(3 /* ParsingContext.SwitchClauseStatements */, parseStatement);
35995 return withJSDoc(finishNode(factory.createCaseClause(expression, statements), pos), hasJSDoc);
35996 }
35997 function parseDefaultClause() {
35998 var pos = getNodePos();
35999 parseExpected(88 /* SyntaxKind.DefaultKeyword */);

Callers 1

parseCaseOrDefaultClauseFunction · 0.85

Calls 7

getNodePosFunction · 0.85
hasPrecedingJSDocCommentFunction · 0.85
parseExpectedFunction · 0.85
allowInAndFunction · 0.85
parseListFunction · 0.85
withJSDocFunction · 0.85
finishNodeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…