()
| 598 | } |
| 599 | |
| 600 | func (p *CELParser) Expr() (localctx IExprContext) { |
| 601 | localctx = NewExprContext(p, p.GetParserRuleContext(), p.GetState()) |
| 602 | p.EnterRule(localctx, 2, CELParserRULE_expr) |
| 603 | var _la int |
| 604 | |
| 605 | p.EnterOuterAlt(localctx, 1) |
| 606 | { |
| 607 | p.SetState(37) |
| 608 | |
| 609 | var _x = p.ConditionalOr() |
| 610 | |
| 611 | localctx.(*ExprContext).e = _x |
| 612 | } |
| 613 | p.SetState(43) |
| 614 | p.GetErrorHandler().Sync(p) |
| 615 | if p.HasError() { |
| 616 | goto errorExit |
| 617 | } |
| 618 | _la = p.GetTokenStream().LA(1) |
| 619 | |
| 620 | if _la == CELParserQUESTIONMARK { |
| 621 | { |
| 622 | p.SetState(38) |
| 623 | |
| 624 | var _m = p.Match(CELParserQUESTIONMARK) |
| 625 | |
| 626 | localctx.(*ExprContext).op = _m |
| 627 | if p.HasError() { |
| 628 | // Recognition error - abort rule |
| 629 | goto errorExit |
| 630 | } |
| 631 | } |
| 632 | { |
| 633 | p.SetState(39) |
| 634 | |
| 635 | var _x = p.ConditionalOr() |
| 636 | |
| 637 | localctx.(*ExprContext).e1 = _x |
| 638 | } |
| 639 | { |
| 640 | p.SetState(40) |
| 641 | p.Match(CELParserCOLON) |
| 642 | if p.HasError() { |
| 643 | // Recognition error - abort rule |
| 644 | goto errorExit |
| 645 | } |
| 646 | } |
| 647 | { |
| 648 | p.SetState(41) |
| 649 | |
| 650 | var _x = p.Expr() |
| 651 | |
| 652 | localctx.(*ExprContext).e2 = _x |
| 653 | } |
| 654 | |
| 655 | } |
| 656 | |
| 657 | errorExit: |
no test coverage detected