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

Method NewComprehensionTwoVar

parser/helper.go:450–461  ·  view source on GitHub ↗

NewComprehensionTwoVar implements the ExprHelper interface method.

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

Source from the content-addressed store, hash-verified

448
449// NewComprehensionTwoVar implements the ExprHelper interface method.
450func (e *exprHelper) NewComprehensionTwoVar(
451 iterRange ast.Expr,
452 iterVar,
453 iterVar2,
454 accuVar string,
455 accuInit,
456 condition,
457 step,
458 result ast.Expr) ast.Expr {
459 return e.exprFactory.NewComprehensionTwoVar(
460 e.nextMacroID(), iterRange, iterVar, iterVar2, accuVar, accuInit, condition, step, result)
461}
462
463// NewIdent implements the ExprHelper interface method.
464func (e *exprHelper) NewIdent(name string) ast.Expr {

Callers

nothing calls this directly

Calls 2

nextMacroIDMethod · 0.95

Tested by

no test coverage detected