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

Method AllRelation

parser/gen/cel_parser.go:1020–1039  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1018func (s *ConditionalAndContext) SetE1(v []IRelationContext) { s.e1 = v }
1019
1020func (s *ConditionalAndContext) AllRelation() []IRelationContext {
1021 children := s.GetChildren()
1022 len := 0
1023 for _, ctx := range children {
1024 if _, ok := ctx.(IRelationContext); ok {
1025 len++
1026 }
1027 }
1028
1029 tst := make([]IRelationContext, len)
1030 i := 0
1031 for _, ctx := range children {
1032 if t, ok := ctx.(IRelationContext); ok {
1033 tst[i] = t.(IRelationContext)
1034 i++
1035 }
1036 }
1037
1038 return tst
1039}
1040
1041func (s *ConditionalAndContext) Relation(i int) IRelationContext {
1042 var t antlr.RuleContext

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected