()
| 376 | } |
| 377 | |
| 378 | func (p *CELParser) Start_() (localctx IStartContext) { |
| 379 | localctx = NewStartContext(p, p.GetParserRuleContext(), p.GetState()) |
| 380 | p.EnterRule(localctx, 0, CELParserRULE_start) |
| 381 | p.EnterOuterAlt(localctx, 1) |
| 382 | { |
| 383 | p.SetState(34) |
| 384 | |
| 385 | var _x = p.Expr() |
| 386 | |
| 387 | localctx.(*StartContext).e = _x |
| 388 | } |
| 389 | { |
| 390 | p.SetState(35) |
| 391 | p.Match(CELParserEOF) |
| 392 | if p.HasError() { |
| 393 | // Recognition error - abort rule |
| 394 | goto errorExit |
| 395 | } |
| 396 | } |
| 397 | |
| 398 | errorExit: |
| 399 | if p.HasError() { |
| 400 | v := p.GetError() |
| 401 | localctx.SetException(v) |
| 402 | p.GetErrorHandler().ReportError(p, v) |
| 403 | p.GetErrorHandler().Recover(p, v) |
| 404 | p.SetError(nil) |
| 405 | } |
| 406 | p.ExitRule() |
| 407 | return localctx |
| 408 | goto errorExit // Trick to prevent compiler error if the label is not used |
| 409 | } |
| 410 | |
| 411 | // IExprContext is an interface to support dynamic dispatch. |
| 412 | type IExprContext interface { |
no test coverage detected