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

Method Relation

repl/parser/commands_parser.go:4999–5017  ·  view source on GitHub ↗
(i int)

Source from the content-addressed store, hash-verified

4997}
4998
4999func (s *ConditionalAndContext) Relation(i int) IRelationContext {
5000 var t antlr.RuleContext
5001 j := 0
5002 for _, ctx := range s.GetChildren() {
5003 if _, ok := ctx.(IRelationContext); ok {
5004 if j == i {
5005 t = ctx.(antlr.RuleContext)
5006 break
5007 }
5008 j++
5009 }
5010 }
5011
5012 if t == nil {
5013 return nil
5014 }
5015
5016 return t.(IRelationContext)
5017}
5018
5019func (s *ConditionalAndContext) AllLOGICAL_AND() []antlr.TerminalNode {
5020 return s.GetTokens(CommandsParserLOGICAL_AND)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected