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

Method OptExpr

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

Source from the content-addressed store, hash-verified

8842}
8843
8844func (s *MapInitializerListContext) OptExpr(i int) IOptExprContext {
8845 var t antlr.RuleContext
8846 j := 0
8847 for _, ctx := range s.GetChildren() {
8848 if _, ok := ctx.(IOptExprContext); ok {
8849 if j == i {
8850 t = ctx.(antlr.RuleContext)
8851 break
8852 }
8853 j++
8854 }
8855 }
8856
8857 if t == nil {
8858 return nil
8859 }
8860
8861 return t.(IOptExprContext)
8862}
8863
8864func (s *MapInitializerListContext) AllCOLON() []antlr.TerminalNode {
8865 return s.GetTokens(CommandsParserCOLON)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected