()
| 8849 | } |
| 8850 | |
| 8851 | func (p *SqlBaseParser) BooleanValue() (localctx IBooleanValueContext) { |
| 8852 | localctx = NewBooleanValueContext(p, p.GetParserRuleContext(), p.GetState()) |
| 8853 | p.EnterRule(localctx, 64, SqlBaseParserRULE_booleanValue) |
| 8854 | var _la int |
| 8855 | |
| 8856 | defer func() { |
| 8857 | p.ExitRule() |
| 8858 | }() |
| 8859 | |
| 8860 | defer func() { |
| 8861 | if err := recover(); err != nil { |
| 8862 | if v, ok := err.(antlr.RecognitionException); ok { |
| 8863 | localctx.SetException(v) |
| 8864 | p.GetErrorHandler().ReportError(p, v) |
| 8865 | p.GetErrorHandler().Recover(p, v) |
| 8866 | } else { |
| 8867 | panic(err) |
| 8868 | } |
| 8869 | } |
| 8870 | }() |
| 8871 | |
| 8872 | p.EnterOuterAlt(localctx, 1) |
| 8873 | { |
| 8874 | p.SetState(617) |
| 8875 | _la = p.GetTokenStream().LA(1) |
| 8876 | |
| 8877 | if !(_la == SqlBaseParserFALSE || _la == SqlBaseParserTRUE) { |
| 8878 | p.GetErrorHandler().RecoverInline(p) |
| 8879 | } else { |
| 8880 | p.GetErrorHandler().ReportMatch(p) |
| 8881 | p.Consume() |
| 8882 | } |
| 8883 | } |
| 8884 | |
| 8885 | return localctx |
| 8886 | } |
| 8887 | |
| 8888 | // IIntervalContext is an interface to support dynamic dispatch. |
| 8889 | type IIntervalContext interface { |
no test coverage detected