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

Method OptField

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

Source from the content-addressed store, hash-verified

8335}
8336
8337func (s *FieldInitializerListContext) OptField(i int) IOptFieldContext {
8338 var t antlr.RuleContext
8339 j := 0
8340 for _, ctx := range s.GetChildren() {
8341 if _, ok := ctx.(IOptFieldContext); ok {
8342 if j == i {
8343 t = ctx.(antlr.RuleContext)
8344 break
8345 }
8346 j++
8347 }
8348 }
8349
8350 if t == nil {
8351 return nil
8352 }
8353
8354 return t.(IOptFieldContext)
8355}
8356
8357func (s *FieldInitializerListContext) AllCOLON() []antlr.TerminalNode {
8358 return s.GetTokens(CommandsParserCOLON)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected