()
| 5055 | } |
| 5056 | |
| 5057 | func (p *CommandsParser) ConditionalAnd() (localctx IConditionalAndContext) { |
| 5058 | localctx = NewConditionalAndContext(p, p.GetParserRuleContext(), p.GetState()) |
| 5059 | p.EnterRule(localctx, 46, CommandsParserRULE_conditionalAnd) |
| 5060 | var _la int |
| 5061 | |
| 5062 | p.EnterOuterAlt(localctx, 1) |
| 5063 | { |
| 5064 | p.SetState(233) |
| 5065 | |
| 5066 | var _x = p.relation(0) |
| 5067 | |
| 5068 | localctx.(*ConditionalAndContext).e = _x |
| 5069 | } |
| 5070 | p.SetState(238) |
| 5071 | p.GetErrorHandler().Sync(p) |
| 5072 | if p.HasError() { |
| 5073 | goto errorExit |
| 5074 | } |
| 5075 | _la = p.GetTokenStream().LA(1) |
| 5076 | |
| 5077 | for _la == CommandsParserLOGICAL_AND { |
| 5078 | { |
| 5079 | p.SetState(234) |
| 5080 | |
| 5081 | var _m = p.Match(CommandsParserLOGICAL_AND) |
| 5082 | |
| 5083 | localctx.(*ConditionalAndContext).s22 = _m |
| 5084 | if p.HasError() { |
| 5085 | // Recognition error - abort rule |
| 5086 | goto errorExit |
| 5087 | } |
| 5088 | } |
| 5089 | localctx.(*ConditionalAndContext).ops = append(localctx.(*ConditionalAndContext).ops, localctx.(*ConditionalAndContext).s22) |
| 5090 | { |
| 5091 | p.SetState(235) |
| 5092 | |
| 5093 | var _x = p.relation(0) |
| 5094 | |
| 5095 | localctx.(*ConditionalAndContext)._relation = _x |
| 5096 | } |
| 5097 | localctx.(*ConditionalAndContext).e1 = append(localctx.(*ConditionalAndContext).e1, localctx.(*ConditionalAndContext)._relation) |
| 5098 | |
| 5099 | p.SetState(240) |
| 5100 | p.GetErrorHandler().Sync(p) |
| 5101 | if p.HasError() { |
| 5102 | goto errorExit |
| 5103 | } |
| 5104 | _la = p.GetTokenStream().LA(1) |
| 5105 | } |
| 5106 | |
| 5107 | errorExit: |
| 5108 | if p.HasError() { |
| 5109 | v := p.GetError() |
| 5110 | localctx.SetException(v) |
| 5111 | p.GetErrorHandler().ReportError(p, v) |
| 5112 | p.GetErrorHandler().Recover(p, v) |
| 5113 | p.SetError(nil) |
| 5114 | } |
no test coverage detected