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

Method NewComprehension

parser/helper.go:441–451  ·  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

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

Callers

nothing calls this directly

Calls 2

nextMacroIDMethod · 0.95
NewComprehensionMethod · 0.65

Tested by

no test coverage detected