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

Method AllConditionalAnd

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

Source from the content-addressed store, hash-verified

4730func (s *ConditionalOrContext) SetE1(v []IConditionalAndContext) { s.e1 = v }
4731
4732func (s *ConditionalOrContext) AllConditionalAnd() []IConditionalAndContext {
4733 children := s.GetChildren()
4734 len := 0
4735 for _, ctx := range children {
4736 if _, ok := ctx.(IConditionalAndContext); ok {
4737 len++
4738 }
4739 }
4740
4741 tst := make([]IConditionalAndContext, len)
4742 i := 0
4743 for _, ctx := range children {
4744 if t, ok := ctx.(IConditionalAndContext); ok {
4745 tst[i] = t.(IConditionalAndContext)
4746 i++
4747 }
4748 }
4749
4750 return tst
4751}
4752
4753func (s *ConditionalOrContext) ConditionalAnd(i int) IConditionalAndContext {
4754 var t antlr.RuleContext

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected