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

Method Help

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

Source from the content-addressed store, hash-verified

908}
909
910func (p *CommandsParser) Help() (localctx IHelpContext) {
911 localctx = NewHelpContext(p, p.GetParserRuleContext(), p.GetState())
912 p.EnterRule(localctx, 4, CommandsParserRULE_help)
913 var _la int
914
915 p.EnterOuterAlt(localctx, 1)
916 {
917 p.SetState(88)
918 _la = p.GetTokenStream().LA(1)
919
920 if !(_la == CommandsParserT__0 || _la == CommandsParserT__1) {
921 p.GetErrorHandler().RecoverInline(p)
922 } else {
923 p.GetErrorHandler().ReportMatch(p)
924 p.Consume()
925 }
926 }
927
928errorExit:
929 if p.HasError() {
930 v := p.GetError()
931 localctx.SetException(v)
932 p.GetErrorHandler().ReportError(p, v)
933 p.GetErrorHandler().Recover(p, v)
934 p.SetError(nil)
935 }
936 p.ExitRule()
937 return localctx
938 goto errorExit // Trick to prevent compiler error if the label is not used
939}
940
941// ILetContext is an interface to support dynamic dispatch.
942type ILetContext interface {

Callers 1

CommandMethod · 0.95

Calls 9

NewHelpContextFunction · 0.85
LAMethod · 0.80
RecoverInlineMethod · 0.80
ReportErrorMethod · 0.80
RecoverMethod · 0.80
GetStateMethod · 0.65
EnterRuleMethod · 0.45
ConsumeMethod · 0.45
ExitRuleMethod · 0.45

Tested by

no test coverage detected