MCPcopy Index your code
hub / github.com/microsoft/typescript-go / parseCaseBlock

Method parseCaseBlock

internal/parser/parser.go:1426–1435  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1424}
1425
1426func (p *Parser) parseCaseBlock() *ast.Node {
1427 pos := p.nodePos()
1428 jsdoc := p.jsdocScannerInfo()
1429 p.parseExpected(ast.KindOpenBraceToken)
1430 clauses := p.parseList(PCSwitchClauses, (*Parser).parseCaseOrDefaultClause)
1431 p.parseExpected(ast.KindCloseBraceToken)
1432 result := p.finishNode(p.factory.NewCaseBlock(clauses), pos)
1433 p.withJSDoc(result, jsdoc)
1434 return result
1435}
1436
1437func (p *Parser) parseSwitchStatement() *ast.Node {
1438 pos := p.nodePos()

Callers 1

parseSwitchStatementMethod · 0.95

Calls 7

nodePosMethod · 0.95
jsdocScannerInfoMethod · 0.95
parseExpectedMethod · 0.95
parseListMethod · 0.95
finishNodeMethod · 0.95
withJSDocMethod · 0.95
NewCaseBlockMethod · 0.80

Tested by

no test coverage detected