()
| 830 | } |
| 831 | |
| 832 | func (p *SqlBaseParser) Statement() (localctx IStatementContext) { |
| 833 | localctx = NewStatementContext(p, p.GetParserRuleContext(), p.GetState()) |
| 834 | p.EnterRule(localctx, 0, SqlBaseParserRULE_statement) |
| 835 | |
| 836 | defer func() { |
| 837 | p.ExitRule() |
| 838 | }() |
| 839 | |
| 840 | defer func() { |
| 841 | if err := recover(); err != nil { |
| 842 | if v, ok := err.(antlr.RecognitionException); ok { |
| 843 | localctx.SetException(v) |
| 844 | p.GetErrorHandler().ReportError(p, v) |
| 845 | p.GetErrorHandler().Recover(p, v) |
| 846 | } else { |
| 847 | panic(err) |
| 848 | } |
| 849 | } |
| 850 | }() |
| 851 | |
| 852 | localctx = NewStatementDefaultContext(p, localctx) |
| 853 | p.EnterOuterAlt(localctx, 1) |
| 854 | { |
| 855 | p.SetState(90) |
| 856 | p.Query() |
| 857 | } |
| 858 | |
| 859 | return localctx |
| 860 | } |
| 861 | |
| 862 | // IQueryContext is an interface to support dynamic dispatch. |
| 863 | type IQueryContext interface { |
nothing calls this directly
no test coverage detected