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

Method Relation

parser/gen/cel_parser.go:1041–1059  ·  view source on GitHub ↗
(i int)

Source from the content-addressed store, hash-verified

1039}
1040
1041func (s *ConditionalAndContext) Relation(i int) IRelationContext {
1042 var t antlr.RuleContext
1043 j := 0
1044 for _, ctx := range s.GetChildren() {
1045 if _, ok := ctx.(IRelationContext); ok {
1046 if j == i {
1047 t = ctx.(antlr.RuleContext)
1048 break
1049 }
1050 j++
1051 }
1052 }
1053
1054 if t == nil {
1055 return nil
1056 }
1057
1058 return t.(IRelationContext)
1059}
1060
1061func (s *ConditionalAndContext) AllLOGICAL_AND() []antlr.TerminalNode {
1062 return s.GetTokens(CELParserLOGICAL_AND)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected