MCPcopy
hub / github.com/uber/aresdb / SetQuantifier

Method SetQuantifier

query/sql/antlrgen/sqlbase_parser.go:3177–3212  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3175}
3176
3177func (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.
3215type ISelectItemContext interface {

Callers 7

queryTermMethod · 0.95
QuerySpecificationMethod · 0.95
GroupByMethod · 0.95
primaryExpressionMethod · 0.95
VisitGroupByMethod · 0.45
VisitFunctionCallMethod · 0.45

Calls 3

NewSetQuantifierContextFunction · 0.85
LAMethod · 0.80
ReportErrorMethod · 0.65

Tested by

no test coverage detected