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

Method NewComprehension

parser/helper.go:437–447  ·  view source on GitHub ↗

NewComprehension implements the ExprHelper interface method.

(
	iterRange ast.Expr,
	iterVar string,
	accuVar string,
	accuInit ast.Expr,
	condition ast.Expr,
	step ast.Expr,
	result ast.Expr)

Source from the content-addressed store, hash-verified

435
436// NewComprehension implements the ExprHelper interface method.
437func (e *exprHelper) NewComprehension(
438 iterRange ast.Expr,
439 iterVar string,
440 accuVar string,
441 accuInit ast.Expr,
442 condition ast.Expr,
443 step ast.Expr,
444 result ast.Expr) ast.Expr {
445 return e.exprFactory.NewComprehension(
446 e.nextMacroID(), iterRange, iterVar, accuVar, accuInit, condition, step, result)
447}
448
449// NewComprehensionTwoVar implements the ExprHelper interface method.
450func (e *exprHelper) NewComprehensionTwoVar(

Callers

nothing calls this directly

Calls 2

nextMacroIDMethod · 0.95
NewComprehensionMethod · 0.65

Tested by

no test coverage detected