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

Method AllConditionalOr

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

Source from the content-addressed store, hash-verified

4461func (s *ExprContext) SetE2(v IExprContext) { s.e2 = v }
4462
4463func (s *ExprContext) AllConditionalOr() []IConditionalOrContext {
4464 children := s.GetChildren()
4465 len := 0
4466 for _, ctx := range children {
4467 if _, ok := ctx.(IConditionalOrContext); ok {
4468 len++
4469 }
4470 }
4471
4472 tst := make([]IConditionalOrContext, len)
4473 i := 0
4474 for _, ctx := range children {
4475 if t, ok := ctx.(IConditionalOrContext); ok {
4476 tst[i] = t.(IConditionalOrContext)
4477 i++
4478 }
4479 }
4480
4481 return tst
4482}
4483
4484func (s *ExprContext) ConditionalOr(i int) IConditionalOrContext {
4485 var t antlr.RuleContext

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected