(value antlr.ParserRuleContext)
| 5820 | } |
| 5821 | |
| 5822 | func (p *SqlBaseParser) Predicate(value antlr.ParserRuleContext) (localctx IPredicateContext) { |
| 5823 | localctx = NewPredicateContext(p, p.GetParserRuleContext(), p.GetState(), value) |
| 5824 | p.EnterRule(localctx, 50, SqlBaseParserRULE_predicate) |
| 5825 | var _la int |
| 5826 | |
| 5827 | defer func() { |
| 5828 | p.ExitRule() |
| 5829 | }() |
| 5830 | |
| 5831 | defer func() { |
| 5832 | if err := recover(); err != nil { |
| 5833 | if v, ok := err.(antlr.RecognitionException); ok { |
| 5834 | localctx.SetException(v) |
| 5835 | p.GetErrorHandler().ReportError(p, v) |
| 5836 | p.GetErrorHandler().Recover(p, v) |
| 5837 | } else { |
| 5838 | panic(err) |
| 5839 | } |
| 5840 | } |
| 5841 | }() |
| 5842 | |
| 5843 | p.SetState(424) |
| 5844 | p.GetErrorHandler().Sync(p) |
| 5845 | switch p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 53, p.GetParserRuleContext()) { |
| 5846 | case 1: |
| 5847 | localctx = NewComparisonContext(p, localctx) |
| 5848 | p.EnterOuterAlt(localctx, 1) |
| 5849 | { |
| 5850 | p.SetState(384) |
| 5851 | p.ComparisonOperator() |
| 5852 | } |
| 5853 | { |
| 5854 | p.SetState(385) |
| 5855 | |
| 5856 | var _x = p.valueExpression(0) |
| 5857 | |
| 5858 | localctx.(*ComparisonContext).right = _x |
| 5859 | } |
| 5860 | |
| 5861 | case 2: |
| 5862 | localctx = NewQuantifiedComparisonContext(p, localctx) |
| 5863 | p.EnterOuterAlt(localctx, 2) |
| 5864 | { |
| 5865 | p.SetState(387) |
| 5866 | p.ComparisonOperator() |
| 5867 | } |
| 5868 | { |
| 5869 | p.SetState(388) |
| 5870 | p.ComparisonQuantifier() |
| 5871 | } |
| 5872 | { |
| 5873 | p.SetState(389) |
| 5874 | p.Match(SqlBaseParserT__1) |
| 5875 | } |
| 5876 | { |
| 5877 | p.SetState(390) |
| 5878 | p.Query() |
| 5879 | } |
no test coverage detected