()
| 3356 | } |
| 3357 | |
| 3358 | func (p *SqlBaseParser) SelectItem() (localctx ISelectItemContext) { |
| 3359 | localctx = NewSelectItemContext(p, p.GetParserRuleContext(), p.GetState()) |
| 3360 | p.EnterRule(localctx, 26, SqlBaseParserRULE_selectItem) |
| 3361 | var _la int |
| 3362 | |
| 3363 | defer func() { |
| 3364 | p.ExitRule() |
| 3365 | }() |
| 3366 | |
| 3367 | defer func() { |
| 3368 | if err := recover(); err != nil { |
| 3369 | if v, ok := err.(antlr.RecognitionException); ok { |
| 3370 | localctx.SetException(v) |
| 3371 | p.GetErrorHandler().ReportError(p, v) |
| 3372 | p.GetErrorHandler().Recover(p, v) |
| 3373 | } else { |
| 3374 | panic(err) |
| 3375 | } |
| 3376 | } |
| 3377 | }() |
| 3378 | |
| 3379 | p.SetState(259) |
| 3380 | p.GetErrorHandler().Sync(p) |
| 3381 | switch p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 29, p.GetParserRuleContext()) { |
| 3382 | case 1: |
| 3383 | localctx = NewSelectSingleContext(p, localctx) |
| 3384 | p.EnterOuterAlt(localctx, 1) |
| 3385 | { |
| 3386 | p.SetState(247) |
| 3387 | p.Expression() |
| 3388 | } |
| 3389 | p.SetState(252) |
| 3390 | p.GetErrorHandler().Sync(p) |
| 3391 | |
| 3392 | if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 28, p.GetParserRuleContext()) == 1 { |
| 3393 | p.SetState(249) |
| 3394 | p.GetErrorHandler().Sync(p) |
| 3395 | _la = p.GetTokenStream().LA(1) |
| 3396 | |
| 3397 | if _la == SqlBaseParserAS { |
| 3398 | { |
| 3399 | p.SetState(248) |
| 3400 | p.Match(SqlBaseParserAS) |
| 3401 | } |
| 3402 | |
| 3403 | } |
| 3404 | { |
| 3405 | p.SetState(251) |
| 3406 | p.Identifier() |
| 3407 | } |
| 3408 | |
| 3409 | } |
| 3410 | |
| 3411 | case 2: |
| 3412 | localctx = NewSelectAllContext(p, localctx) |
| 3413 | p.EnterOuterAlt(localctx, 2) |
| 3414 | { |
| 3415 | p.SetState(254) |
no test coverage detected