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

Method NewComprehension

common/ast/factory.go:131–134  ·  view source on GitHub ↗
(id int64, iterRange Expr, iterVar, accuVar string, accuInit, loopCond, loopStep, result Expr)

Source from the content-addressed store, hash-verified

129}
130
131func (fac *baseExprFactory) NewComprehension(id int64, iterRange Expr, iterVar, accuVar string, accuInit, loopCond, loopStep, result Expr) Expr {
132 // Set the iter_var2 to empty string to indicate the second variable is omitted
133 return fac.NewComprehensionTwoVar(id, iterRange, iterVar, "", accuVar, accuInit, loopCond, loopStep, result)
134}
135
136func (fac *baseExprFactory) NewComprehensionTwoVar(id int64, iterRange Expr, iterVar, iterVar2, accuVar string, accuInit, loopCond, loopStep, result Expr) Expr {
137 return fac.newExpr(

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected