()
| 3448 | } |
| 3449 | |
| 3450 | func (p *GScriptParser) ArrayInitializer() (localctx IArrayInitializerContext) { |
| 3451 | localctx = NewArrayInitializerContext(p, p.GetParserRuleContext(), p.GetState()) |
| 3452 | p.EnterRule(localctx, 40, GScriptParserRULE_arrayInitializer) |
| 3453 | var _la int |
| 3454 | |
| 3455 | defer func() { |
| 3456 | p.ExitRule() |
| 3457 | }() |
| 3458 | |
| 3459 | defer func() { |
| 3460 | if err := recover(); err != nil { |
| 3461 | if v, ok := err.(antlr.RecognitionException); ok { |
| 3462 | localctx.SetException(v) |
| 3463 | p.GetErrorHandler().ReportError(p, v) |
| 3464 | p.GetErrorHandler().Recover(p, v) |
| 3465 | } else { |
| 3466 | panic(err) |
| 3467 | } |
| 3468 | } |
| 3469 | }() |
| 3470 | |
| 3471 | var _alt int |
| 3472 | |
| 3473 | p.EnterOuterAlt(localctx, 1) |
| 3474 | p.SetState(241) |
| 3475 | p.GetErrorHandler().Sync(p) |
| 3476 | _la = p.GetTokenStream().LA(1) |
| 3477 | |
| 3478 | if _la == GScriptParserLBRACK { |
| 3479 | { |
| 3480 | p.SetState(233) |
| 3481 | p.Match(GScriptParserLBRACK) |
| 3482 | } |
| 3483 | { |
| 3484 | p.SetState(234) |
| 3485 | p.expr(0) |
| 3486 | } |
| 3487 | p.SetState(237) |
| 3488 | p.GetErrorHandler().Sync(p) |
| 3489 | _la = p.GetTokenStream().LA(1) |
| 3490 | |
| 3491 | if _la == GScriptParserT__1 { |
| 3492 | { |
| 3493 | p.SetState(235) |
| 3494 | p.Match(GScriptParserT__1) |
| 3495 | } |
| 3496 | { |
| 3497 | p.SetState(236) |
| 3498 | p.expr(0) |
| 3499 | } |
| 3500 | |
| 3501 | } |
| 3502 | { |
| 3503 | p.SetState(239) |
| 3504 | p.Match(GScriptParserRBRACK) |
| 3505 | } |
| 3506 | |
| 3507 | } |
no test coverage detected