()
| 4474 | } |
| 4475 | |
| 4476 | func (p *SqlBaseParser) AliasedRelation() (localctx IAliasedRelationContext) { |
| 4477 | localctx = NewAliasedRelationContext(p, p.GetParserRuleContext(), p.GetState()) |
| 4478 | p.EnterRule(localctx, 38, SqlBaseParserRULE_aliasedRelation) |
| 4479 | var _la int |
| 4480 | |
| 4481 | defer func() { |
| 4482 | p.ExitRule() |
| 4483 | }() |
| 4484 | |
| 4485 | defer func() { |
| 4486 | if err := recover(); err != nil { |
| 4487 | if v, ok := err.(antlr.RecognitionException); ok { |
| 4488 | localctx.SetException(v) |
| 4489 | p.GetErrorHandler().ReportError(p, v) |
| 4490 | p.GetErrorHandler().Recover(p, v) |
| 4491 | } else { |
| 4492 | panic(err) |
| 4493 | } |
| 4494 | } |
| 4495 | }() |
| 4496 | |
| 4497 | p.EnterOuterAlt(localctx, 1) |
| 4498 | { |
| 4499 | p.SetState(329) |
| 4500 | p.RelationPrimary() |
| 4501 | } |
| 4502 | p.SetState(337) |
| 4503 | p.GetErrorHandler().Sync(p) |
| 4504 | |
| 4505 | if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 42, p.GetParserRuleContext()) == 1 { |
| 4506 | p.SetState(331) |
| 4507 | p.GetErrorHandler().Sync(p) |
| 4508 | _la = p.GetTokenStream().LA(1) |
| 4509 | |
| 4510 | if _la == SqlBaseParserAS { |
| 4511 | { |
| 4512 | p.SetState(330) |
| 4513 | p.Match(SqlBaseParserAS) |
| 4514 | } |
| 4515 | |
| 4516 | } |
| 4517 | { |
| 4518 | p.SetState(333) |
| 4519 | p.Identifier() |
| 4520 | } |
| 4521 | p.SetState(335) |
| 4522 | p.GetErrorHandler().Sync(p) |
| 4523 | |
| 4524 | if p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 41, p.GetParserRuleContext()) == 1 { |
| 4525 | { |
| 4526 | p.SetState(334) |
| 4527 | p.ColumnAliases() |
| 4528 | } |
| 4529 | |
| 4530 | } |
| 4531 | |
| 4532 | } |
| 4533 |
no test coverage detected