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

Method QuerySpecification

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

Source from the content-addressed store, hash-verified

2376}
2377
2378func (p *SqlBaseParser) QuerySpecification() (localctx IQuerySpecificationContext) {
2379 localctx = NewQuerySpecificationContext(p, p.GetParserRuleContext(), p.GetState())
2380 p.EnterRule(localctx, 14, SqlBaseParserRULE_querySpecification)
2381
2382 defer func() {
2383 p.ExitRule()
2384 }()
2385
2386 defer func() {
2387 if err := recover(); err != nil {
2388 if v, ok := err.(antlr.RecognitionException); ok {
2389 localctx.SetException(v)
2390 p.GetErrorHandler().ReportError(p, v)
2391 p.GetErrorHandler().Recover(p, v)
2392 } else {
2393 panic(err)
2394 }
2395 }
2396 }()
2397
2398 var _alt int
2399
2400 p.EnterOuterAlt(localctx, 1)
2401 {
2402 p.SetState(172)
2403 p.Match(SqlBaseParserSELECT)
2404 }
2405 p.SetState(174)
2406 p.GetErrorHandler().Sync(p)
2407
2408 if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 14, p.GetParserRuleContext()) == 1 {
2409 {
2410 p.SetState(173)
2411 p.SetQuantifier()
2412 }
2413
2414 }
2415 {
2416 p.SetState(176)
2417 p.SelectItem()
2418 }
2419 p.SetState(181)
2420 p.GetErrorHandler().Sync(p)
2421 _alt = p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 15, p.GetParserRuleContext())
2422
2423 for _alt != 2 && _alt != antlr.ATNInvalidAltNumber {
2424 if _alt == 1 {
2425 {
2426 p.SetState(177)
2427 p.Match(SqlBaseParserT__0)
2428 }
2429 {
2430 p.SetState(178)
2431 p.SelectItem()
2432 }
2433
2434 }
2435 p.SetState(183)

Callers 1

QueryPrimaryMethod · 0.95

Calls 7

SetQuantifierMethod · 0.95
SelectItemMethod · 0.95
relationMethod · 0.95
booleanExpressionMethod · 0.95
GroupByMethod · 0.95
ReportErrorMethod · 0.65

Tested by

no test coverage detected