()
| 4170 | } |
| 4171 | |
| 4172 | func (p *CELParser) ListInit() (localctx IListInitContext) { |
| 4173 | localctx = NewListInitContext(p, p.GetParserRuleContext(), p.GetState()) |
| 4174 | p.EnterRule(localctx, 20, CELParserRULE_listInit) |
| 4175 | var _alt int |
| 4176 | |
| 4177 | p.EnterOuterAlt(localctx, 1) |
| 4178 | { |
| 4179 | p.SetState(194) |
| 4180 | |
| 4181 | var _x = p.OptExpr() |
| 4182 | |
| 4183 | localctx.(*ListInitContext)._optExpr = _x |
| 4184 | } |
| 4185 | localctx.(*ListInitContext).elems = append(localctx.(*ListInitContext).elems, localctx.(*ListInitContext)._optExpr) |
| 4186 | p.SetState(199) |
| 4187 | p.GetErrorHandler().Sync(p) |
| 4188 | if p.HasError() { |
| 4189 | goto errorExit |
| 4190 | } |
| 4191 | _alt = p.GetInterpreter().AdaptivePredict(p.BaseParser, p.GetTokenStream(), 27, p.GetParserRuleContext()) |
| 4192 | if p.HasError() { |
| 4193 | goto errorExit |
| 4194 | } |
| 4195 | for _alt != 2 && _alt != antlr.ATNInvalidAltNumber { |
| 4196 | if _alt == 1 { |
| 4197 | { |
| 4198 | p.SetState(195) |
| 4199 | p.Match(CELParserCOMMA) |
| 4200 | if p.HasError() { |
| 4201 | // Recognition error - abort rule |
| 4202 | goto errorExit |
| 4203 | } |
| 4204 | } |
| 4205 | { |
| 4206 | p.SetState(196) |
| 4207 | |
| 4208 | var _x = p.OptExpr() |
| 4209 | |
| 4210 | localctx.(*ListInitContext)._optExpr = _x |
| 4211 | } |
| 4212 | localctx.(*ListInitContext).elems = append(localctx.(*ListInitContext).elems, localctx.(*ListInitContext)._optExpr) |
| 4213 | |
| 4214 | } |
| 4215 | p.SetState(201) |
| 4216 | p.GetErrorHandler().Sync(p) |
| 4217 | if p.HasError() { |
| 4218 | goto errorExit |
| 4219 | } |
| 4220 | _alt = p.GetInterpreter().AdaptivePredict(p.BaseParser, p.GetTokenStream(), 27, p.GetParserRuleContext()) |
| 4221 | if p.HasError() { |
| 4222 | goto errorExit |
| 4223 | } |
| 4224 | } |
| 4225 | |
| 4226 | errorExit: |
| 4227 | if p.HasError() { |
| 4228 | v := p.GetError() |
| 4229 | localctx.SetException(v) |
no test coverage detected