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

Method OptField

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

Source from the content-addressed store, hash-verified

4377}
4378
4379func (s *FieldInitializerListContext) OptField(i int) IOptFieldContext {
4380 var t antlr.RuleContext
4381 j := 0
4382 for _, ctx := range s.GetChildren() {
4383 if _, ok := ctx.(IOptFieldContext); ok {
4384 if j == i {
4385 t = ctx.(antlr.RuleContext)
4386 break
4387 }
4388 j++
4389 }
4390 }
4391
4392 if t == nil {
4393 return nil
4394 }
4395
4396 return t.(IOptFieldContext)
4397}
4398
4399func (s *FieldInitializerListContext) AllCOLON() []antlr.TerminalNode {
4400 return s.GetTokens(CELParserCOLON)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected