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

Method visitSlice

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

Source from the content-addressed store, hash-verified

867}
868
869func (p *parser) visitSlice(expressions []gen.IExprContext) []ast.Expr {
870 if expressions == nil {
871 return []ast.Expr{}
872 }
873 result := make([]ast.Expr, len(expressions))
874 for i, e := range expressions {
875 ex := p.Visit(e).(ast.Expr)
876 result[i] = ex
877 }
878 return result
879}
880
881func (p *parser) unquote(ctx any, value string, isBytes bool) string {
882 text, err := unescape(value, isBytes)

Callers 1

visitExprListMethod · 0.95

Calls 1

VisitMethod · 0.95

Tested by

no test coverage detected