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

Method OptExpr

parser/gen/cel_parser.go:4886–4904  ·  view source on GitHub ↗
(i int)

Source from the content-addressed store, hash-verified

4884}
4885
4886func (s *MapInitializerListContext) OptExpr(i int) IOptExprContext {
4887 var t antlr.RuleContext
4888 j := 0
4889 for _, ctx := range s.GetChildren() {
4890 if _, ok := ctx.(IOptExprContext); ok {
4891 if j == i {
4892 t = ctx.(antlr.RuleContext)
4893 break
4894 }
4895 j++
4896 }
4897 }
4898
4899 if t == nil {
4900 return nil
4901 }
4902
4903 return t.(IOptExprContext)
4904}
4905
4906func (s *MapInitializerListContext) AllCOLON() []antlr.TerminalNode {
4907 return s.GetTokens(CELParserCOLON)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected