()
| 851 | } |
| 852 | |
| 853 | func (p *CELParser) ConditionalOr() (localctx IConditionalOrContext) { |
| 854 | localctx = NewConditionalOrContext(p, p.GetParserRuleContext(), p.GetState()) |
| 855 | p.EnterRule(localctx, 4, CELParserRULE_conditionalOr) |
| 856 | var _la int |
| 857 | |
| 858 | p.EnterOuterAlt(localctx, 1) |
| 859 | { |
| 860 | p.SetState(45) |
| 861 | |
| 862 | var _x = p.ConditionalAnd() |
| 863 | |
| 864 | localctx.(*ConditionalOrContext).e = _x |
| 865 | } |
| 866 | p.SetState(50) |
| 867 | p.GetErrorHandler().Sync(p) |
| 868 | if p.HasError() { |
| 869 | goto errorExit |
| 870 | } |
| 871 | _la = p.GetTokenStream().LA(1) |
| 872 | |
| 873 | for _la == CELParserLOGICAL_OR { |
| 874 | { |
| 875 | p.SetState(46) |
| 876 | |
| 877 | var _m = p.Match(CELParserLOGICAL_OR) |
| 878 | |
| 879 | localctx.(*ConditionalOrContext).s9 = _m |
| 880 | if p.HasError() { |
| 881 | // Recognition error - abort rule |
| 882 | goto errorExit |
| 883 | } |
| 884 | } |
| 885 | localctx.(*ConditionalOrContext).ops = append(localctx.(*ConditionalOrContext).ops, localctx.(*ConditionalOrContext).s9) |
| 886 | { |
| 887 | p.SetState(47) |
| 888 | |
| 889 | var _x = p.ConditionalAnd() |
| 890 | |
| 891 | localctx.(*ConditionalOrContext)._conditionalAnd = _x |
| 892 | } |
| 893 | localctx.(*ConditionalOrContext).e1 = append(localctx.(*ConditionalOrContext).e1, localctx.(*ConditionalOrContext)._conditionalAnd) |
| 894 | |
| 895 | p.SetState(52) |
| 896 | p.GetErrorHandler().Sync(p) |
| 897 | if p.HasError() { |
| 898 | goto errorExit |
| 899 | } |
| 900 | _la = p.GetTokenStream().LA(1) |
| 901 | } |
| 902 | |
| 903 | errorExit: |
| 904 | if p.HasError() { |
| 905 | v := p.GetError() |
| 906 | localctx.SetException(v) |
| 907 | p.GetErrorHandler().ReportError(p, v) |
| 908 | p.GetErrorHandler().Recover(p, v) |
| 909 | p.SetError(nil) |
| 910 | } |
no test coverage detected