()
| 8442 | } |
| 8443 | |
| 8444 | func (p *CommandsParser) FieldInitializerList() (localctx IFieldInitializerListContext) { |
| 8445 | localctx = NewFieldInitializerListContext(p, p.GetParserRuleContext(), p.GetState()) |
| 8446 | p.EnterRule(localctx, 62, CommandsParserRULE_fieldInitializerList) |
| 8447 | var _alt int |
| 8448 | |
| 8449 | p.EnterOuterAlt(localctx, 1) |
| 8450 | { |
| 8451 | p.SetState(382) |
| 8452 | |
| 8453 | var _x = p.OptField() |
| 8454 | |
| 8455 | localctx.(*FieldInitializerListContext)._optField = _x |
| 8456 | } |
| 8457 | localctx.(*FieldInitializerListContext).fields = append(localctx.(*FieldInitializerListContext).fields, localctx.(*FieldInitializerListContext)._optField) |
| 8458 | { |
| 8459 | p.SetState(383) |
| 8460 | |
| 8461 | var _m = p.Match(CommandsParserCOLON) |
| 8462 | |
| 8463 | localctx.(*FieldInitializerListContext).s35 = _m |
| 8464 | if p.HasError() { |
| 8465 | // Recognition error - abort rule |
| 8466 | goto errorExit |
| 8467 | } |
| 8468 | } |
| 8469 | localctx.(*FieldInitializerListContext).cols = append(localctx.(*FieldInitializerListContext).cols, localctx.(*FieldInitializerListContext).s35) |
| 8470 | { |
| 8471 | p.SetState(384) |
| 8472 | |
| 8473 | var _x = p.Expr() |
| 8474 | |
| 8475 | localctx.(*FieldInitializerListContext)._expr = _x |
| 8476 | } |
| 8477 | localctx.(*FieldInitializerListContext).values = append(localctx.(*FieldInitializerListContext).values, localctx.(*FieldInitializerListContext)._expr) |
| 8478 | p.SetState(392) |
| 8479 | p.GetErrorHandler().Sync(p) |
| 8480 | if p.HasError() { |
| 8481 | goto errorExit |
| 8482 | } |
| 8483 | _alt = p.GetInterpreter().AdaptivePredict(p.BaseParser, p.GetTokenStream(), 48, p.GetParserRuleContext()) |
| 8484 | if p.HasError() { |
| 8485 | goto errorExit |
| 8486 | } |
| 8487 | for _alt != 2 && _alt != antlr.ATNInvalidAltNumber { |
| 8488 | if _alt == 1 { |
| 8489 | { |
| 8490 | p.SetState(385) |
| 8491 | p.Match(CommandsParserCOMMA) |
| 8492 | if p.HasError() { |
| 8493 | // Recognition error - abort rule |
| 8494 | goto errorExit |
| 8495 | } |
| 8496 | } |
| 8497 | { |
| 8498 | p.SetState(386) |
| 8499 | |
| 8500 | var _x = p.OptField() |
| 8501 |
no test coverage detected