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

Method AllOptExpr

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

Source from the content-addressed store, hash-verified

8821func (s *MapInitializerListContext) SetValues(v []IExprContext) { s.values = v }
8822
8823func (s *MapInitializerListContext) AllOptExpr() []IOptExprContext {
8824 children := s.GetChildren()
8825 len := 0
8826 for _, ctx := range children {
8827 if _, ok := ctx.(IOptExprContext); ok {
8828 len++
8829 }
8830 }
8831
8832 tst := make([]IOptExprContext, len)
8833 i := 0
8834 for _, ctx := range children {
8835 if t, ok := ctx.(IOptExprContext); ok {
8836 tst[i] = t.(IOptExprContext)
8837 i++
8838 }
8839 }
8840
8841 return tst
8842}
8843
8844func (s *MapInitializerListContext) OptExpr(i int) IOptExprContext {
8845 var t antlr.RuleContext

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected