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

Method OptExpr

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

Source from the content-addressed store, hash-verified

4112}
4113
4114func (s *ListInitContext) OptExpr(i int) IOptExprContext {
4115 var t antlr.RuleContext
4116 j := 0
4117 for _, ctx := range s.GetChildren() {
4118 if _, ok := ctx.(IOptExprContext); ok {
4119 if j == i {
4120 t = ctx.(antlr.RuleContext)
4121 break
4122 }
4123 j++
4124 }
4125 }
4126
4127 if t == nil {
4128 return nil
4129 }
4130
4131 return t.(IOptExprContext)
4132}
4133
4134func (s *ListInitContext) AllCOMMA() []antlr.TerminalNode {
4135 return s.GetTokens(CELParserCOMMA)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected