()
| 3175 | } |
| 3176 | |
| 3177 | func (p *SqlBaseParser) SetQuantifier() (localctx ISetQuantifierContext) { |
| 3178 | localctx = NewSetQuantifierContext(p, p.GetParserRuleContext(), p.GetState()) |
| 3179 | p.EnterRule(localctx, 24, SqlBaseParserRULE_setQuantifier) |
| 3180 | var _la int |
| 3181 | |
| 3182 | defer func() { |
| 3183 | p.ExitRule() |
| 3184 | }() |
| 3185 | |
| 3186 | defer func() { |
| 3187 | if err := recover(); err != nil { |
| 3188 | if v, ok := err.(antlr.RecognitionException); ok { |
| 3189 | localctx.SetException(v) |
| 3190 | p.GetErrorHandler().ReportError(p, v) |
| 3191 | p.GetErrorHandler().Recover(p, v) |
| 3192 | } else { |
| 3193 | panic(err) |
| 3194 | } |
| 3195 | } |
| 3196 | }() |
| 3197 | |
| 3198 | p.EnterOuterAlt(localctx, 1) |
| 3199 | { |
| 3200 | p.SetState(245) |
| 3201 | _la = p.GetTokenStream().LA(1) |
| 3202 | |
| 3203 | if !(_la == SqlBaseParserALL || _la == SqlBaseParserDISTINCT) { |
| 3204 | p.GetErrorHandler().RecoverInline(p) |
| 3205 | } else { |
| 3206 | p.GetErrorHandler().ReportMatch(p) |
| 3207 | p.Consume() |
| 3208 | } |
| 3209 | } |
| 3210 | |
| 3211 | return localctx |
| 3212 | } |
| 3213 | |
| 3214 | // ISelectItemContext is an interface to support dynamic dispatch. |
| 3215 | type ISelectItemContext interface { |
no test coverage detected