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

Method Empty

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

Source from the content-addressed store, hash-verified

2541}
2542
2543func (p *CommandsParser) Empty() (localctx IEmptyContext) {
2544 localctx = NewEmptyContext(p, p.GetParserRuleContext(), p.GetState())
2545 p.EnterRule(localctx, 20, CommandsParserRULE_empty)
2546 p.EnterOuterAlt(localctx, 1)
2547
2548errorExit:
2549 if p.HasError() {
2550 v := p.GetError()
2551 localctx.SetException(v)
2552 p.GetErrorHandler().ReportError(p, v)
2553 p.GetErrorHandler().Recover(p, v)
2554 p.SetError(nil)
2555 }
2556 p.ExitRule()
2557 return localctx
2558 goto errorExit // Trick to prevent compiler error if the label is not used
2559}
2560
2561// ICompileContext is an interface to support dynamic dispatch.
2562type ICompileContext interface {

Callers 1

CommandMethod · 0.95

Calls 6

NewEmptyContextFunction · 0.85
ReportErrorMethod · 0.80
RecoverMethod · 0.80
GetStateMethod · 0.65
EnterRuleMethod · 0.45
ExitRuleMethod · 0.45

Tested by

no test coverage detected