MCPcopy Index your code
hub / github.com/google/mangle / ClauseBody

Method ClauseBody

parse/gen/mangle_parser.go:2576–2681  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2574}
2575
2576func (p *MangleParser) ClauseBody() (localctx IClauseBodyContext) {
2577 localctx = NewClauseBodyContext(p, p.GetParserRuleContext(), p.GetState())
2578 p.EnterRule(localctx, 22, MangleParserRULE_clauseBody)
2579 var _la int
2580
2581 var _alt int
2582
2583 p.EnterOuterAlt(localctx, 1)
2584 {
2585 p.SetState(134)
2586 p.LiteralOrFml()
2587 }
2588 p.SetState(139)
2589 p.GetErrorHandler().Sync(p)
2590 if p.HasError() {
2591 goto errorExit
2592 }
2593 _alt = p.GetInterpreter().AdaptivePredict(p.BaseParser, p.GetTokenStream(), 15, p.GetParserRuleContext())
2594 if p.HasError() {
2595 goto errorExit
2596 }
2597 for _alt != 2 && _alt != antlr.ATNInvalidAltNumber {
2598 if _alt == 1 {
2599 {
2600 p.SetState(135)
2601 p.Match(MangleParserCOMMA)
2602 if p.HasError() {
2603 // Recognition error - abort rule
2604 goto errorExit
2605 }
2606 }
2607 {
2608 p.SetState(136)
2609 p.LiteralOrFml()
2610 }
2611
2612 }
2613 p.SetState(141)
2614 p.GetErrorHandler().Sync(p)
2615 if p.HasError() {
2616 goto errorExit
2617 }
2618 _alt = p.GetInterpreter().AdaptivePredict(p.BaseParser, p.GetTokenStream(), 15, p.GetParserRuleContext())
2619 if p.HasError() {
2620 goto errorExit
2621 }
2622 }
2623 p.SetState(143)
2624 p.GetErrorHandler().Sync(p)
2625 if p.HasError() {
2626 goto errorExit
2627 }
2628 _la = p.GetTokenStream().LA(1)
2629
2630 if _la == MangleParserCOMMA {
2631 {
2632 p.SetState(142)
2633 p.Match(MangleParserCOMMA)

Callers 1

ClauseMethod · 0.95

Calls 5

LiteralOrFmlMethod · 0.95
TransformMethod · 0.95
NewClauseBodyContextFunction · 0.85
EnterRuleMethod · 0.45
ExitRuleMethod · 0.45

Tested by

no test coverage detected