()
| 4484 | } |
| 4485 | |
| 4486 | func (p *CELParser) FieldInitializerList() (localctx IFieldInitializerListContext) { |
| 4487 | localctx = NewFieldInitializerListContext(p, p.GetParserRuleContext(), p.GetState()) |
| 4488 | p.EnterRule(localctx, 22, CELParserRULE_fieldInitializerList) |
| 4489 | var _alt int |
| 4490 | |
| 4491 | p.EnterOuterAlt(localctx, 1) |
| 4492 | { |
| 4493 | p.SetState(202) |
| 4494 | |
| 4495 | var _x = p.OptField() |
| 4496 | |
| 4497 | localctx.(*FieldInitializerListContext)._optField = _x |
| 4498 | } |
| 4499 | localctx.(*FieldInitializerListContext).fields = append(localctx.(*FieldInitializerListContext).fields, localctx.(*FieldInitializerListContext)._optField) |
| 4500 | { |
| 4501 | p.SetState(203) |
| 4502 | |
| 4503 | var _m = p.Match(CELParserCOLON) |
| 4504 | |
| 4505 | localctx.(*FieldInitializerListContext).s21 = _m |
| 4506 | if p.HasError() { |
| 4507 | // Recognition error - abort rule |
| 4508 | goto errorExit |
| 4509 | } |
| 4510 | } |
| 4511 | localctx.(*FieldInitializerListContext).cols = append(localctx.(*FieldInitializerListContext).cols, localctx.(*FieldInitializerListContext).s21) |
| 4512 | { |
| 4513 | p.SetState(204) |
| 4514 | |
| 4515 | var _x = p.Expr() |
| 4516 | |
| 4517 | localctx.(*FieldInitializerListContext)._expr = _x |
| 4518 | } |
| 4519 | localctx.(*FieldInitializerListContext).values = append(localctx.(*FieldInitializerListContext).values, localctx.(*FieldInitializerListContext)._expr) |
| 4520 | p.SetState(212) |
| 4521 | p.GetErrorHandler().Sync(p) |
| 4522 | if p.HasError() { |
| 4523 | goto errorExit |
| 4524 | } |
| 4525 | _alt = p.GetInterpreter().AdaptivePredict(p.BaseParser, p.GetTokenStream(), 28, p.GetParserRuleContext()) |
| 4526 | if p.HasError() { |
| 4527 | goto errorExit |
| 4528 | } |
| 4529 | for _alt != 2 && _alt != antlr.ATNInvalidAltNumber { |
| 4530 | if _alt == 1 { |
| 4531 | { |
| 4532 | p.SetState(205) |
| 4533 | p.Match(CELParserCOMMA) |
| 4534 | if p.HasError() { |
| 4535 | // Recognition error - abort rule |
| 4536 | goto errorExit |
| 4537 | } |
| 4538 | } |
| 4539 | { |
| 4540 | p.SetState(206) |
| 4541 | |
| 4542 | var _x = p.OptField() |
| 4543 |
no test coverage detected