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

Method AllRelation

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

Source from the content-addressed store, hash-verified

4976func (s *ConditionalAndContext) SetE1(v []IRelationContext) { s.e1 = v }
4977
4978func (s *ConditionalAndContext) AllRelation() []IRelationContext {
4979 children := s.GetChildren()
4980 len := 0
4981 for _, ctx := range children {
4982 if _, ok := ctx.(IRelationContext); ok {
4983 len++
4984 }
4985 }
4986
4987 tst := make([]IRelationContext, len)
4988 i := 0
4989 for _, ctx := range children {
4990 if t, ok := ctx.(IRelationContext); ok {
4991 tst[i] = t.(IRelationContext)
4992 i++
4993 }
4994 }
4995
4996 return tst
4997}
4998
4999func (s *ConditionalAndContext) Relation(i int) IRelationContext {
5000 var t antlr.RuleContext

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected