()
| 4991 | } |
| 4992 | |
| 4993 | func (p *CELParser) MapInitializerList() (localctx IMapInitializerListContext) { |
| 4994 | localctx = NewMapInitializerListContext(p, p.GetParserRuleContext(), p.GetState()) |
| 4995 | p.EnterRule(localctx, 26, CELParserRULE_mapInitializerList) |
| 4996 | var _alt int |
| 4997 | |
| 4998 | p.EnterOuterAlt(localctx, 1) |
| 4999 | { |
| 5000 | p.SetState(220) |
| 5001 | |
| 5002 | var _x = p.OptExpr() |
| 5003 | |
| 5004 | localctx.(*MapInitializerListContext)._optExpr = _x |
| 5005 | } |
| 5006 | localctx.(*MapInitializerListContext).keys = append(localctx.(*MapInitializerListContext).keys, localctx.(*MapInitializerListContext)._optExpr) |
| 5007 | { |
| 5008 | p.SetState(221) |
| 5009 | |
| 5010 | var _m = p.Match(CELParserCOLON) |
| 5011 | |
| 5012 | localctx.(*MapInitializerListContext).s21 = _m |
| 5013 | if p.HasError() { |
| 5014 | // Recognition error - abort rule |
| 5015 | goto errorExit |
| 5016 | } |
| 5017 | } |
| 5018 | localctx.(*MapInitializerListContext).cols = append(localctx.(*MapInitializerListContext).cols, localctx.(*MapInitializerListContext).s21) |
| 5019 | { |
| 5020 | p.SetState(222) |
| 5021 | |
| 5022 | var _x = p.Expr() |
| 5023 | |
| 5024 | localctx.(*MapInitializerListContext)._expr = _x |
| 5025 | } |
| 5026 | localctx.(*MapInitializerListContext).values = append(localctx.(*MapInitializerListContext).values, localctx.(*MapInitializerListContext)._expr) |
| 5027 | p.SetState(230) |
| 5028 | p.GetErrorHandler().Sync(p) |
| 5029 | if p.HasError() { |
| 5030 | goto errorExit |
| 5031 | } |
| 5032 | _alt = p.GetInterpreter().AdaptivePredict(p.BaseParser, p.GetTokenStream(), 30, p.GetParserRuleContext()) |
| 5033 | if p.HasError() { |
| 5034 | goto errorExit |
| 5035 | } |
| 5036 | for _alt != 2 && _alt != antlr.ATNInvalidAltNumber { |
| 5037 | if _alt == 1 { |
| 5038 | { |
| 5039 | p.SetState(223) |
| 5040 | p.Match(CELParserCOMMA) |
| 5041 | if p.HasError() { |
| 5042 | // Recognition error - abort rule |
| 5043 | goto errorExit |
| 5044 | } |
| 5045 | } |
| 5046 | { |
| 5047 | p.SetState(224) |
| 5048 | |
| 5049 | var _x = p.OptExpr() |
| 5050 |
no test coverage detected