()
| 936 | } |
| 937 | |
| 938 | func (p *SqlBaseParser) Query() (localctx IQueryContext) { |
| 939 | localctx = NewQueryContext(p, p.GetParserRuleContext(), p.GetState()) |
| 940 | p.EnterRule(localctx, 2, SqlBaseParserRULE_query) |
| 941 | var _la int |
| 942 | |
| 943 | defer func() { |
| 944 | p.ExitRule() |
| 945 | }() |
| 946 | |
| 947 | defer func() { |
| 948 | if err := recover(); err != nil { |
| 949 | if v, ok := err.(antlr.RecognitionException); ok { |
| 950 | localctx.SetException(v) |
| 951 | p.GetErrorHandler().ReportError(p, v) |
| 952 | p.GetErrorHandler().Recover(p, v) |
| 953 | } else { |
| 954 | panic(err) |
| 955 | } |
| 956 | } |
| 957 | }() |
| 958 | |
| 959 | p.EnterOuterAlt(localctx, 1) |
| 960 | p.SetState(93) |
| 961 | p.GetErrorHandler().Sync(p) |
| 962 | _la = p.GetTokenStream().LA(1) |
| 963 | |
| 964 | if _la == SqlBaseParserWITH { |
| 965 | { |
| 966 | p.SetState(92) |
| 967 | p.With() |
| 968 | } |
| 969 | |
| 970 | } |
| 971 | { |
| 972 | p.SetState(95) |
| 973 | p.QueryNoWith() |
| 974 | } |
| 975 | |
| 976 | return localctx |
| 977 | } |
| 978 | |
| 979 | // IWithContext is an interface to support dynamic dispatch. |
| 980 | type IWithContext interface { |
no test coverage detected