()
| 3644 | } |
| 3645 | |
| 3646 | func (p *GScriptParser) ClassOrInterfaceType() (localctx IClassOrInterfaceTypeContext) { |
| 3647 | localctx = NewClassOrInterfaceTypeContext(p, p.GetParserRuleContext(), p.GetState()) |
| 3648 | p.EnterRule(localctx, 42, GScriptParserRULE_classOrInterfaceType) |
| 3649 | var _la int |
| 3650 | |
| 3651 | defer func() { |
| 3652 | p.ExitRule() |
| 3653 | }() |
| 3654 | |
| 3655 | defer func() { |
| 3656 | if err := recover(); err != nil { |
| 3657 | if v, ok := err.(antlr.RecognitionException); ok { |
| 3658 | localctx.SetException(v) |
| 3659 | p.GetErrorHandler().ReportError(p, v) |
| 3660 | p.GetErrorHandler().Recover(p, v) |
| 3661 | } else { |
| 3662 | panic(err) |
| 3663 | } |
| 3664 | } |
| 3665 | }() |
| 3666 | |
| 3667 | p.EnterOuterAlt(localctx, 1) |
| 3668 | { |
| 3669 | p.SetState(259) |
| 3670 | p.Match(GScriptParserIDENTIFIER) |
| 3671 | } |
| 3672 | p.SetState(264) |
| 3673 | p.GetErrorHandler().Sync(p) |
| 3674 | _la = p.GetTokenStream().LA(1) |
| 3675 | |
| 3676 | for _la == GScriptParserDOT { |
| 3677 | { |
| 3678 | p.SetState(260) |
| 3679 | p.Match(GScriptParserDOT) |
| 3680 | } |
| 3681 | { |
| 3682 | p.SetState(261) |
| 3683 | p.Match(GScriptParserIDENTIFIER) |
| 3684 | } |
| 3685 | |
| 3686 | p.SetState(266) |
| 3687 | p.GetErrorHandler().Sync(p) |
| 3688 | _la = p.GetTokenStream().LA(1) |
| 3689 | } |
| 3690 | |
| 3691 | return localctx |
| 3692 | } |
| 3693 | |
| 3694 | // ILiteralContext is an interface to support dynamic dispatch. |
| 3695 | type ILiteralContext interface { |
no test coverage detected