()
| 4809 | } |
| 4810 | |
| 4811 | func (p *CommandsParser) ConditionalOr() (localctx IConditionalOrContext) { |
| 4812 | localctx = NewConditionalOrContext(p, p.GetParserRuleContext(), p.GetState()) |
| 4813 | p.EnterRule(localctx, 44, CommandsParserRULE_conditionalOr) |
| 4814 | var _la int |
| 4815 | |
| 4816 | p.EnterOuterAlt(localctx, 1) |
| 4817 | { |
| 4818 | p.SetState(225) |
| 4819 | |
| 4820 | var _x = p.ConditionalAnd() |
| 4821 | |
| 4822 | localctx.(*ConditionalOrContext).e = _x |
| 4823 | } |
| 4824 | p.SetState(230) |
| 4825 | p.GetErrorHandler().Sync(p) |
| 4826 | if p.HasError() { |
| 4827 | goto errorExit |
| 4828 | } |
| 4829 | _la = p.GetTokenStream().LA(1) |
| 4830 | |
| 4831 | for _la == CommandsParserLOGICAL_OR { |
| 4832 | { |
| 4833 | p.SetState(226) |
| 4834 | |
| 4835 | var _m = p.Match(CommandsParserLOGICAL_OR) |
| 4836 | |
| 4837 | localctx.(*ConditionalOrContext).s23 = _m |
| 4838 | if p.HasError() { |
| 4839 | // Recognition error - abort rule |
| 4840 | goto errorExit |
| 4841 | } |
| 4842 | } |
| 4843 | localctx.(*ConditionalOrContext).ops = append(localctx.(*ConditionalOrContext).ops, localctx.(*ConditionalOrContext).s23) |
| 4844 | { |
| 4845 | p.SetState(227) |
| 4846 | |
| 4847 | var _x = p.ConditionalAnd() |
| 4848 | |
| 4849 | localctx.(*ConditionalOrContext)._conditionalAnd = _x |
| 4850 | } |
| 4851 | localctx.(*ConditionalOrContext).e1 = append(localctx.(*ConditionalOrContext).e1, localctx.(*ConditionalOrContext)._conditionalAnd) |
| 4852 | |
| 4853 | p.SetState(232) |
| 4854 | p.GetErrorHandler().Sync(p) |
| 4855 | if p.HasError() { |
| 4856 | goto errorExit |
| 4857 | } |
| 4858 | _la = p.GetTokenStream().LA(1) |
| 4859 | } |
| 4860 | |
| 4861 | errorExit: |
| 4862 | if p.HasError() { |
| 4863 | v := p.GetError() |
| 4864 | localctx.SetException(v) |
| 4865 | p.GetErrorHandler().ReportError(p, v) |
| 4866 | p.GetErrorHandler().Recover(p, v) |
| 4867 | p.SetError(nil) |
| 4868 | } |
no test coverage detected