()
| 6782 | } |
| 6783 | |
| 6784 | func (p *SQLiteParser) Signed_number() (localctx ISigned_numberContext) { |
| 6785 | localctx = NewSigned_numberContext(p, p.GetParserRuleContext(), p.GetState()) |
| 6786 | p.EnterRule(localctx, 36, SQLiteParserRULE_signed_number) |
| 6787 | var _la int |
| 6788 | |
| 6789 | p.EnterOuterAlt(localctx, 1) |
| 6790 | p.SetState(555) |
| 6791 | p.GetErrorHandler().Sync(p) |
| 6792 | if p.HasError() { |
| 6793 | goto errorExit |
| 6794 | } |
| 6795 | _la = p.GetTokenStream().LA(1) |
| 6796 | |
| 6797 | if _la == SQLiteParserPLUS || _la == SQLiteParserMINUS { |
| 6798 | { |
| 6799 | p.SetState(554) |
| 6800 | _la = p.GetTokenStream().LA(1) |
| 6801 | |
| 6802 | if !(_la == SQLiteParserPLUS || _la == SQLiteParserMINUS) { |
| 6803 | p.GetErrorHandler().RecoverInline(p) |
| 6804 | } else { |
| 6805 | p.GetErrorHandler().ReportMatch(p) |
| 6806 | p.Consume() |
| 6807 | } |
| 6808 | } |
| 6809 | |
| 6810 | } |
| 6811 | { |
| 6812 | p.SetState(557) |
| 6813 | p.Match(SQLiteParserNUMERIC_LITERAL) |
| 6814 | if p.HasError() { |
| 6815 | // Recognition error - abort rule |
| 6816 | goto errorExit |
| 6817 | } |
| 6818 | } |
| 6819 | |
| 6820 | errorExit: |
| 6821 | if p.HasError() { |
| 6822 | v := p.GetError() |
| 6823 | localctx.SetException(v) |
| 6824 | p.GetErrorHandler().ReportError(p, v) |
| 6825 | p.GetErrorHandler().Recover(p, v) |
| 6826 | p.SetError(nil) |
| 6827 | } |
| 6828 | p.ExitRule() |
| 6829 | return localctx |
| 6830 | goto errorExit // Trick to prevent compiler error if the label is not used |
| 6831 | } |
| 6832 | |
| 6833 | // ITable_constraintContext is an interface to support dynamic dispatch. |
| 6834 | type ITable_constraintContext interface { |
no test coverage detected