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

Method Expr

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

Source from the content-addressed store, hash-verified

8891}
8892
8893func (s *MapInitializerListContext) Expr(i int) IExprContext {
8894 var t antlr.RuleContext
8895 j := 0
8896 for _, ctx := range s.GetChildren() {
8897 if _, ok := ctx.(IExprContext); ok {
8898 if j == i {
8899 t = ctx.(antlr.RuleContext)
8900 break
8901 }
8902 j++
8903 }
8904 }
8905
8906 if t == nil {
8907 return nil
8908 }
8909
8910 return t.(IExprContext)
8911}
8912
8913func (s *MapInitializerListContext) AllCOMMA() []antlr.TerminalNode {
8914 return s.GetTokens(CommandsParserCOMMA)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected