()
| 2616 | } |
| 2617 | |
| 2618 | func (p *SqlBaseParser) GroupBy() (localctx IGroupByContext) { |
| 2619 | localctx = NewGroupByContext(p, p.GetParserRuleContext(), p.GetState()) |
| 2620 | p.EnterRule(localctx, 16, SqlBaseParserRULE_groupBy) |
| 2621 | |
| 2622 | defer func() { |
| 2623 | p.ExitRule() |
| 2624 | }() |
| 2625 | |
| 2626 | defer func() { |
| 2627 | if err := recover(); err != nil { |
| 2628 | if v, ok := err.(antlr.RecognitionException); ok { |
| 2629 | localctx.SetException(v) |
| 2630 | p.GetErrorHandler().ReportError(p, v) |
| 2631 | p.GetErrorHandler().Recover(p, v) |
| 2632 | } else { |
| 2633 | panic(err) |
| 2634 | } |
| 2635 | } |
| 2636 | }() |
| 2637 | |
| 2638 | var _alt int |
| 2639 | |
| 2640 | p.EnterOuterAlt(localctx, 1) |
| 2641 | p.SetState(209) |
| 2642 | p.GetErrorHandler().Sync(p) |
| 2643 | |
| 2644 | if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 21, p.GetParserRuleContext()) == 1 { |
| 2645 | { |
| 2646 | p.SetState(208) |
| 2647 | p.SetQuantifier() |
| 2648 | } |
| 2649 | |
| 2650 | } |
| 2651 | { |
| 2652 | p.SetState(211) |
| 2653 | p.GroupingElement() |
| 2654 | } |
| 2655 | p.SetState(216) |
| 2656 | p.GetErrorHandler().Sync(p) |
| 2657 | _alt = p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 22, p.GetParserRuleContext()) |
| 2658 | |
| 2659 | for _alt != 2 && _alt != antlr.ATNInvalidAltNumber { |
| 2660 | if _alt == 1 { |
| 2661 | { |
| 2662 | p.SetState(212) |
| 2663 | p.Match(SqlBaseParserT__0) |
| 2664 | } |
| 2665 | { |
| 2666 | p.SetState(213) |
| 2667 | p.GroupingElement() |
| 2668 | } |
| 2669 | |
| 2670 | } |
| 2671 | p.SetState(218) |
| 2672 | p.GetErrorHandler().Sync(p) |
| 2673 | _alt = p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 22, p.GetParserRuleContext()) |
| 2674 | } |
| 2675 |
no test coverage detected