()
| 8949 | } |
| 8950 | |
| 8951 | func (p *CommandsParser) MapInitializerList() (localctx IMapInitializerListContext) { |
| 8952 | localctx = NewMapInitializerListContext(p, p.GetParserRuleContext(), p.GetState()) |
| 8953 | p.EnterRule(localctx, 66, CommandsParserRULE_mapInitializerList) |
| 8954 | var _alt int |
| 8955 | |
| 8956 | p.EnterOuterAlt(localctx, 1) |
| 8957 | { |
| 8958 | p.SetState(400) |
| 8959 | |
| 8960 | var _x = p.OptExpr() |
| 8961 | |
| 8962 | localctx.(*MapInitializerListContext)._optExpr = _x |
| 8963 | } |
| 8964 | localctx.(*MapInitializerListContext).keys = append(localctx.(*MapInitializerListContext).keys, localctx.(*MapInitializerListContext)._optExpr) |
| 8965 | { |
| 8966 | p.SetState(401) |
| 8967 | |
| 8968 | var _m = p.Match(CommandsParserCOLON) |
| 8969 | |
| 8970 | localctx.(*MapInitializerListContext).s35 = _m |
| 8971 | if p.HasError() { |
| 8972 | // Recognition error - abort rule |
| 8973 | goto errorExit |
| 8974 | } |
| 8975 | } |
| 8976 | localctx.(*MapInitializerListContext).cols = append(localctx.(*MapInitializerListContext).cols, localctx.(*MapInitializerListContext).s35) |
| 8977 | { |
| 8978 | p.SetState(402) |
| 8979 | |
| 8980 | var _x = p.Expr() |
| 8981 | |
| 8982 | localctx.(*MapInitializerListContext)._expr = _x |
| 8983 | } |
| 8984 | localctx.(*MapInitializerListContext).values = append(localctx.(*MapInitializerListContext).values, localctx.(*MapInitializerListContext)._expr) |
| 8985 | p.SetState(410) |
| 8986 | p.GetErrorHandler().Sync(p) |
| 8987 | if p.HasError() { |
| 8988 | goto errorExit |
| 8989 | } |
| 8990 | _alt = p.GetInterpreter().AdaptivePredict(p.BaseParser, p.GetTokenStream(), 50, p.GetParserRuleContext()) |
| 8991 | if p.HasError() { |
| 8992 | goto errorExit |
| 8993 | } |
| 8994 | for _alt != 2 && _alt != antlr.ATNInvalidAltNumber { |
| 8995 | if _alt == 1 { |
| 8996 | { |
| 8997 | p.SetState(403) |
| 8998 | p.Match(CommandsParserCOMMA) |
| 8999 | if p.HasError() { |
| 9000 | // Recognition error - abort rule |
| 9001 | goto errorExit |
| 9002 | } |
| 9003 | } |
| 9004 | { |
| 9005 | p.SetState(404) |
| 9006 | |
| 9007 | var _x = p.OptExpr() |
| 9008 |
no test coverage detected