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

Method AllExpr

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

Source from the content-addressed store, hash-verified

3881func (s *ExprListContext) SetE(v []IExprContext) { s.e = v }
3882
3883func (s *ExprListContext) AllExpr() []IExprContext {
3884 children := s.GetChildren()
3885 len := 0
3886 for _, ctx := range children {
3887 if _, ok := ctx.(IExprContext); ok {
3888 len++
3889 }
3890 }
3891
3892 tst := make([]IExprContext, len)
3893 i := 0
3894 for _, ctx := range children {
3895 if t, ok := ctx.(IExprContext); ok {
3896 tst[i] = t.(IExprContext)
3897 i++
3898 }
3899 }
3900
3901 return tst
3902}
3903
3904func (s *ExprListContext) Expr(i int) IExprContext {
3905 var t antlr.RuleContext

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected