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

Method AllOptExpr

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

Source from the content-addressed store, hash-verified

4863func (s *MapInitializerListContext) SetValues(v []IExprContext) { s.values = v }
4864
4865func (s *MapInitializerListContext) AllOptExpr() []IOptExprContext {
4866 children := s.GetChildren()
4867 len := 0
4868 for _, ctx := range children {
4869 if _, ok := ctx.(IOptExprContext); ok {
4870 len++
4871 }
4872 }
4873
4874 tst := make([]IOptExprContext, len)
4875 i := 0
4876 for _, ctx := range children {
4877 if t, ok := ctx.(IOptExprContext); ok {
4878 tst[i] = t.(IOptExprContext)
4879 i++
4880 }
4881 }
4882
4883 return tst
4884}
4885
4886func (s *MapInitializerListContext) OptExpr(i int) IOptExprContext {
4887 var t antlr.RuleContext

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected