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

Method AllConditionalAnd

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

Source from the content-addressed store, hash-verified

772func (s *ConditionalOrContext) SetE1(v []IConditionalAndContext) { s.e1 = v }
773
774func (s *ConditionalOrContext) AllConditionalAnd() []IConditionalAndContext {
775 children := s.GetChildren()
776 len := 0
777 for _, ctx := range children {
778 if _, ok := ctx.(IConditionalAndContext); ok {
779 len++
780 }
781 }
782
783 tst := make([]IConditionalAndContext, len)
784 i := 0
785 for _, ctx := range children {
786 if t, ok := ctx.(IConditionalAndContext); ok {
787 tst[i] = t.(IConditionalAndContext)
788 i++
789 }
790 }
791
792 return tst
793}
794
795func (s *ConditionalOrContext) ConditionalAnd(i int) IConditionalAndContext {
796 var t antlr.RuleContext

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected