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

Method AllConditionalOr

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

Source from the content-addressed store, hash-verified

503func (s *ExprContext) SetE2(v IExprContext) { s.e2 = v }
504
505func (s *ExprContext) AllConditionalOr() []IConditionalOrContext {
506 children := s.GetChildren()
507 len := 0
508 for _, ctx := range children {
509 if _, ok := ctx.(IConditionalOrContext); ok {
510 len++
511 }
512 }
513
514 tst := make([]IConditionalOrContext, len)
515 i := 0
516 for _, ctx := range children {
517 if t, ok := ctx.(IConditionalOrContext); ok {
518 tst[i] = t.(IConditionalOrContext)
519 i++
520 }
521 }
522
523 return tst
524}
525
526func (s *ExprContext) ConditionalOr(i int) IConditionalOrContext {
527 var t antlr.RuleContext

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected