()
| 834 | } |
| 835 | |
| 836 | func (p *GScriptParser) ClassBodyDeclaration() (localctx IClassBodyDeclarationContext) { |
| 837 | localctx = NewClassBodyDeclarationContext(p, p.GetParserRuleContext(), p.GetState()) |
| 838 | p.EnterRule(localctx, 4, GScriptParserRULE_classBodyDeclaration) |
| 839 | |
| 840 | defer func() { |
| 841 | p.ExitRule() |
| 842 | }() |
| 843 | |
| 844 | defer func() { |
| 845 | if err := recover(); err != nil { |
| 846 | if v, ok := err.(antlr.RecognitionException); ok { |
| 847 | localctx.SetException(v) |
| 848 | p.GetErrorHandler().ReportError(p, v) |
| 849 | p.GetErrorHandler().Recover(p, v) |
| 850 | } else { |
| 851 | panic(err) |
| 852 | } |
| 853 | } |
| 854 | }() |
| 855 | |
| 856 | p.SetState(109) |
| 857 | p.GetErrorHandler().Sync(p) |
| 858 | |
| 859 | switch p.GetTokenStream().LA(1) { |
| 860 | case GScriptParserT__0: |
| 861 | p.EnterOuterAlt(localctx, 1) |
| 862 | { |
| 863 | p.SetState(107) |
| 864 | p.Match(GScriptParserT__0) |
| 865 | } |
| 866 | |
| 867 | case GScriptParserINT, GScriptParserSTRING, GScriptParserFLOAT, GScriptParserBOOLEAN, GScriptParserBYTE, GScriptParserANY, GScriptParserFUNCTION, GScriptParserVOID, GScriptParserIDENTIFIER: |
| 868 | p.EnterOuterAlt(localctx, 2) |
| 869 | { |
| 870 | p.SetState(108) |
| 871 | p.MemberDeclaration() |
| 872 | } |
| 873 | |
| 874 | default: |
| 875 | panic(antlr.NewNoViableAltException(p, nil, nil, nil, nil, nil)) |
| 876 | } |
| 877 | |
| 878 | return localctx |
| 879 | } |
| 880 | |
| 881 | // IMemberDeclarationContext is an interface to support dynamic dispatch. |
| 882 | type IMemberDeclarationContext interface { |
no test coverage detected