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

Method Command

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

Source from the content-addressed store, hash-verified

438func (s *StartCommandContext) GetParser() antlr.Parser { return s.parser }
439
440func (s *StartCommandContext) Command() ICommandContext {
441 var t antlr.RuleContext
442 for _, ctx := range s.GetChildren() {
443 if _, ok := ctx.(ICommandContext); ok {
444 t = ctx.(antlr.RuleContext)
445 break
446 }
447 }
448
449 if t == nil {
450 return nil
451 }
452
453 return t.(ICommandContext)
454}
455
456func (s *StartCommandContext) EOF() antlr.TerminalNode {
457 return s.GetToken(CommandsParserEOF, 0)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected