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

Method Expr

repl/parser/commands_parser.go:8386–8404  ·  view source on GitHub ↗
(i int)

Source from the content-addressed store, hash-verified

8384}
8385
8386func (s *FieldInitializerListContext) Expr(i int) IExprContext {
8387 var t antlr.RuleContext
8388 j := 0
8389 for _, ctx := range s.GetChildren() {
8390 if _, ok := ctx.(IExprContext); ok {
8391 if j == i {
8392 t = ctx.(antlr.RuleContext)
8393 break
8394 }
8395 j++
8396 }
8397 }
8398
8399 if t == nil {
8400 return nil
8401 }
8402
8403 return t.(IExprContext)
8404}
8405
8406func (s *FieldInitializerListContext) AllCOMMA() []antlr.TerminalNode {
8407 return s.GetTokens(CommandsParserCOMMA)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected