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

Method Expr

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

Source from the content-addressed store, hash-verified

3902}
3903
3904func (s *ExprListContext) Expr(i int) IExprContext {
3905 var t antlr.RuleContext
3906 j := 0
3907 for _, ctx := range s.GetChildren() {
3908 if _, ok := ctx.(IExprContext); ok {
3909 if j == i {
3910 t = ctx.(antlr.RuleContext)
3911 break
3912 }
3913 j++
3914 }
3915 }
3916
3917 if t == nil {
3918 return nil
3919 }
3920
3921 return t.(IExprContext)
3922}
3923
3924func (s *ExprListContext) AllCOMMA() []antlr.TerminalNode {
3925 return s.GetTokens(CELParserCOMMA)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected