(_p int)
| 9537 | } |
| 9538 | |
| 9539 | func (p *SqlBaseParser) sqltype(_p int) (localctx ISqltypeContext) { |
| 9540 | var _parentctx antlr.ParserRuleContext = p.GetParserRuleContext() |
| 9541 | _parentState := p.GetState() |
| 9542 | localctx = NewSqltypeContext(p, p.GetParserRuleContext(), _parentState) |
| 9543 | var _prevctx ISqltypeContext = localctx |
| 9544 | var _ antlr.ParserRuleContext = _prevctx // TODO: To prevent unused variable warning. |
| 9545 | _startState := 72 |
| 9546 | p.EnterRecursionRule(localctx, 72, SqlBaseParserRULE_sqltype, _p) |
| 9547 | var _la int |
| 9548 | |
| 9549 | defer func() { |
| 9550 | p.UnrollRecursionContexts(_parentctx) |
| 9551 | }() |
| 9552 | |
| 9553 | defer func() { |
| 9554 | if err := recover(); err != nil { |
| 9555 | if v, ok := err.(antlr.RecognitionException); ok { |
| 9556 | localctx.SetException(v) |
| 9557 | p.GetErrorHandler().ReportError(p, v) |
| 9558 | p.GetErrorHandler().Recover(p, v) |
| 9559 | } else { |
| 9560 | panic(err) |
| 9561 | } |
| 9562 | } |
| 9563 | }() |
| 9564 | |
| 9565 | var _alt int |
| 9566 | |
| 9567 | p.EnterOuterAlt(localctx, 1) |
| 9568 | p.SetState(680) |
| 9569 | p.GetErrorHandler().Sync(p) |
| 9570 | switch p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 85, p.GetParserRuleContext()) { |
| 9571 | case 1: |
| 9572 | { |
| 9573 | p.SetState(634) |
| 9574 | p.Match(SqlBaseParserARRAY) |
| 9575 | } |
| 9576 | { |
| 9577 | p.SetState(635) |
| 9578 | p.Match(SqlBaseParserLT) |
| 9579 | } |
| 9580 | { |
| 9581 | p.SetState(636) |
| 9582 | p.sqltype(0) |
| 9583 | } |
| 9584 | { |
| 9585 | p.SetState(637) |
| 9586 | p.Match(SqlBaseParserGT) |
| 9587 | } |
| 9588 | |
| 9589 | case 2: |
| 9590 | { |
| 9591 | p.SetState(639) |
| 9592 | p.Match(SqlBaseParserMAP) |
| 9593 | } |
| 9594 | { |
| 9595 | p.SetState(640) |
| 9596 | p.Match(SqlBaseParserLT) |
no test coverage detected