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

Method NewComprehension

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

476
477// NewComprehension implements the ExprHelper interface method.
478func (e *exprHelper) NewComprehension(
479 iterRange ast.Expr,
480 iterVar string,
481 accuVar string,
482 accuInit ast.Expr,
483 condition ast.Expr,
484 step ast.Expr,
485 result ast.Expr) ast.Expr {
486 return e.exprFactory.NewComprehension(
487 e.nextMacroID(), iterRange, iterVar, accuVar, accuInit, condition, step, result)
488}
489
490// NewComprehensionTwoVar implements the ExprHelper interface method.
491func (e *exprHelper) NewComprehensionTwoVar(

Callers

nothing calls this directly

Calls 2

nextMacroIDMethod · 0.95
NewComprehensionMethod · 0.65

Tested by

no test coverage detected