()
| 2860 | } |
| 2861 | |
| 2862 | func (p *GScriptParser) VariableDeclarators() (localctx IVariableDeclaratorsContext) { |
| 2863 | localctx = NewVariableDeclaratorsContext(p, p.GetParserRuleContext(), p.GetState()) |
| 2864 | p.EnterRule(localctx, 32, GScriptParserRULE_variableDeclarators) |
| 2865 | var _la int |
| 2866 | |
| 2867 | defer func() { |
| 2868 | p.ExitRule() |
| 2869 | }() |
| 2870 | |
| 2871 | defer func() { |
| 2872 | if err := recover(); err != nil { |
| 2873 | if v, ok := err.(antlr.RecognitionException); ok { |
| 2874 | localctx.SetException(v) |
| 2875 | p.GetErrorHandler().ReportError(p, v) |
| 2876 | p.GetErrorHandler().Recover(p, v) |
| 2877 | } else { |
| 2878 | panic(err) |
| 2879 | } |
| 2880 | } |
| 2881 | }() |
| 2882 | |
| 2883 | p.EnterOuterAlt(localctx, 1) |
| 2884 | { |
| 2885 | p.SetState(207) |
| 2886 | p.TypeType() |
| 2887 | } |
| 2888 | { |
| 2889 | p.SetState(208) |
| 2890 | p.VariableDeclarator() |
| 2891 | } |
| 2892 | p.SetState(213) |
| 2893 | p.GetErrorHandler().Sync(p) |
| 2894 | _la = p.GetTokenStream().LA(1) |
| 2895 | |
| 2896 | for _la == GScriptParserT__1 { |
| 2897 | { |
| 2898 | p.SetState(209) |
| 2899 | p.Match(GScriptParserT__1) |
| 2900 | } |
| 2901 | { |
| 2902 | p.SetState(210) |
| 2903 | p.VariableDeclarator() |
| 2904 | } |
| 2905 | |
| 2906 | p.SetState(215) |
| 2907 | p.GetErrorHandler().Sync(p) |
| 2908 | _la = p.GetTokenStream().LA(1) |
| 2909 | } |
| 2910 | |
| 2911 | return localctx |
| 2912 | } |
| 2913 | |
| 2914 | // IVariableDeclaratorContext is an interface to support dynamic dispatch. |
| 2915 | type IVariableDeclaratorContext interface { |
no test coverage detected