()
| 2200 | } |
| 2201 | |
| 2202 | func (p *GScriptParser) FormalParameter() (localctx IFormalParameterContext) { |
| 2203 | localctx = NewFormalParameterContext(p, p.GetParserRuleContext(), p.GetState()) |
| 2204 | p.EnterRule(localctx, 22, GScriptParserRULE_formalParameter) |
| 2205 | var _la int |
| 2206 | |
| 2207 | defer func() { |
| 2208 | p.ExitRule() |
| 2209 | }() |
| 2210 | |
| 2211 | defer func() { |
| 2212 | if err := recover(); err != nil { |
| 2213 | if v, ok := err.(antlr.RecognitionException); ok { |
| 2214 | localctx.SetException(v) |
| 2215 | p.GetErrorHandler().ReportError(p, v) |
| 2216 | p.GetErrorHandler().Recover(p, v) |
| 2217 | } else { |
| 2218 | panic(err) |
| 2219 | } |
| 2220 | } |
| 2221 | }() |
| 2222 | |
| 2223 | p.EnterOuterAlt(localctx, 1) |
| 2224 | p.SetState(178) |
| 2225 | p.GetErrorHandler().Sync(p) |
| 2226 | _la = p.GetTokenStream().LA(1) |
| 2227 | |
| 2228 | for _la == GScriptParserFINAL { |
| 2229 | { |
| 2230 | p.SetState(175) |
| 2231 | p.VariableModifier() |
| 2232 | } |
| 2233 | |
| 2234 | p.SetState(180) |
| 2235 | p.GetErrorHandler().Sync(p) |
| 2236 | _la = p.GetTokenStream().LA(1) |
| 2237 | } |
| 2238 | { |
| 2239 | p.SetState(181) |
| 2240 | p.TypeType() |
| 2241 | } |
| 2242 | { |
| 2243 | p.SetState(182) |
| 2244 | p.VariableDeclaratorId() |
| 2245 | } |
| 2246 | |
| 2247 | return localctx |
| 2248 | } |
| 2249 | |
| 2250 | // ILastFormalParameterContext is an interface to support dynamic dispatch. |
| 2251 | type ILastFormalParameterContext interface { |
no test coverage detected