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

Method Expr

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

Source from the content-addressed store, hash-verified

4426}
4427
4428func (s *FieldInitializerListContext) Expr(i int) IExprContext {
4429 var t antlr.RuleContext
4430 j := 0
4431 for _, ctx := range s.GetChildren() {
4432 if _, ok := ctx.(IExprContext); ok {
4433 if j == i {
4434 t = ctx.(antlr.RuleContext)
4435 break
4436 }
4437 j++
4438 }
4439 }
4440
4441 if t == nil {
4442 return nil
4443 }
4444
4445 return t.(IExprContext)
4446}
4447
4448func (s *FieldInitializerListContext) AllCOMMA() []antlr.TerminalNode {
4449 return s.GetTokens(CELParserCOMMA)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected