MCPcopy Create free account
hub / github.com/cel-expr/cel-go / Start_

Method Start_

repl/parser/commands_parser.go:4336–4367  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4334}
4335
4336func (p *CommandsParser) Start_() (localctx IStartContext) {
4337 localctx = NewStartContext(p, p.GetParserRuleContext(), p.GetState())
4338 p.EnterRule(localctx, 40, CommandsParserRULE_start)
4339 p.EnterOuterAlt(localctx, 1)
4340 {
4341 p.SetState(214)
4342
4343 var _x = p.Expr()
4344
4345 localctx.(*StartContext).e = _x
4346 }
4347 {
4348 p.SetState(215)
4349 p.Match(CommandsParserEOF)
4350 if p.HasError() {
4351 // Recognition error - abort rule
4352 goto errorExit
4353 }
4354 }
4355
4356errorExit:
4357 if p.HasError() {
4358 v := p.GetError()
4359 localctx.SetException(v)
4360 p.GetErrorHandler().ReportError(p, v)
4361 p.GetErrorHandler().Recover(p, v)
4362 p.SetError(nil)
4363 }
4364 p.ExitRule()
4365 return localctx
4366 goto errorExit // Trick to prevent compiler error if the label is not used
4367}
4368
4369// IExprContext is an interface to support dynamic dispatch.
4370type IExprContext interface {

Callers

nothing calls this directly

Calls 8

ExprMethod · 0.95
ReportErrorMethod · 0.80
RecoverMethod · 0.80
NewStartContextFunction · 0.70
GetStateMethod · 0.65
MatchMethod · 0.65
EnterRuleMethod · 0.45
ExitRuleMethod · 0.45

Tested by

no test coverage detected