()
| 2363 | } |
| 2364 | |
| 2365 | func (p *GScriptParser) LastFormalParameter() (localctx ILastFormalParameterContext) { |
| 2366 | localctx = NewLastFormalParameterContext(p, p.GetParserRuleContext(), p.GetState()) |
| 2367 | p.EnterRule(localctx, 24, GScriptParserRULE_lastFormalParameter) |
| 2368 | var _la int |
| 2369 | |
| 2370 | defer func() { |
| 2371 | p.ExitRule() |
| 2372 | }() |
| 2373 | |
| 2374 | defer func() { |
| 2375 | if err := recover(); err != nil { |
| 2376 | if v, ok := err.(antlr.RecognitionException); ok { |
| 2377 | localctx.SetException(v) |
| 2378 | p.GetErrorHandler().ReportError(p, v) |
| 2379 | p.GetErrorHandler().Recover(p, v) |
| 2380 | } else { |
| 2381 | panic(err) |
| 2382 | } |
| 2383 | } |
| 2384 | }() |
| 2385 | |
| 2386 | p.EnterOuterAlt(localctx, 1) |
| 2387 | p.SetState(187) |
| 2388 | p.GetErrorHandler().Sync(p) |
| 2389 | _la = p.GetTokenStream().LA(1) |
| 2390 | |
| 2391 | for _la == GScriptParserFINAL { |
| 2392 | { |
| 2393 | p.SetState(184) |
| 2394 | p.VariableModifier() |
| 2395 | } |
| 2396 | |
| 2397 | p.SetState(189) |
| 2398 | p.GetErrorHandler().Sync(p) |
| 2399 | _la = p.GetTokenStream().LA(1) |
| 2400 | } |
| 2401 | { |
| 2402 | p.SetState(190) |
| 2403 | p.TypeType() |
| 2404 | } |
| 2405 | { |
| 2406 | p.SetState(191) |
| 2407 | p.Match(GScriptParserELLIPSIS) |
| 2408 | } |
| 2409 | { |
| 2410 | p.SetState(192) |
| 2411 | p.VariableDeclaratorId() |
| 2412 | } |
| 2413 | |
| 2414 | return localctx |
| 2415 | } |
| 2416 | |
| 2417 | // IVariableModifierContext is an interface to support dynamic dispatch. |
| 2418 | type IVariableModifierContext interface { |
no test coverage detected