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

Method visitSlice

parser/parser.go:877–887  ·  view source on GitHub ↗
(expressions []gen.IExprContext)

Source from the content-addressed store, hash-verified

875}
876
877func (p *parser) visitSlice(expressions []gen.IExprContext) []ast.Expr {
878 if expressions == nil {
879 return []ast.Expr{}
880 }
881 result := make([]ast.Expr, len(expressions))
882 for i, e := range expressions {
883 ex := p.Visit(e).(ast.Expr)
884 result[i] = ex
885 }
886 return result
887}
888
889func (p *parser) unquote(ctx any, value string, isBytes bool) string {
890 text, err := unescape(value, isBytes)

Callers 1

visitExprListMethod · 0.95

Calls 1

VisitMethod · 0.95

Tested by

no test coverage detected