()
| 7690 | } |
| 7691 | |
| 7692 | func (p *GScriptParser) PrimitiveType() (localctx IPrimitiveTypeContext) { |
| 7693 | localctx = NewPrimitiveTypeContext(p, p.GetParserRuleContext(), p.GetState()) |
| 7694 | p.EnterRule(localctx, 78, GScriptParserRULE_primitiveType) |
| 7695 | var _la int |
| 7696 | |
| 7697 | defer func() { |
| 7698 | p.ExitRule() |
| 7699 | }() |
| 7700 | |
| 7701 | defer func() { |
| 7702 | if err := recover(); err != nil { |
| 7703 | if v, ok := err.(antlr.RecognitionException); ok { |
| 7704 | localctx.SetException(v) |
| 7705 | p.GetErrorHandler().ReportError(p, v) |
| 7706 | p.GetErrorHandler().Recover(p, v) |
| 7707 | } else { |
| 7708 | panic(err) |
| 7709 | } |
| 7710 | } |
| 7711 | }() |
| 7712 | |
| 7713 | p.EnterOuterAlt(localctx, 1) |
| 7714 | { |
| 7715 | p.SetState(478) |
| 7716 | _la = p.GetTokenStream().LA(1) |
| 7717 | |
| 7718 | if !(((_la)&-(0x1f+1)) == 0 && ((1<<uint(_la))&((1<<GScriptParserINT)|(1<<GScriptParserSTRING)|(1<<GScriptParserFLOAT)|(1<<GScriptParserBOOLEAN)|(1<<GScriptParserBYTE)|(1<<GScriptParserANY))) != 0) { |
| 7719 | p.GetErrorHandler().RecoverInline(p) |
| 7720 | } else { |
| 7721 | p.GetErrorHandler().ReportMatch(p) |
| 7722 | p.Consume() |
| 7723 | } |
| 7724 | } |
| 7725 | |
| 7726 | return localctx |
| 7727 | } |
| 7728 | |
| 7729 | // IIntegerLiteralContext is an interface to support dynamic dispatch. |
| 7730 | type IIntegerLiteralContext interface { |
no test coverage detected