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

Method newComprehension

parser/helper.go:116–126  ·  view source on GitHub ↗
(ctx any,
	iterRange ast.Expr,
	iterVar,
	accuVar string,
	accuInit ast.Expr,
	condition ast.Expr,
	step ast.Expr,
	result ast.Expr)

Source from the content-addressed store, hash-verified

114}
115
116func (p *parserHelper) newComprehension(ctx any,
117 iterRange ast.Expr,
118 iterVar,
119 accuVar string,
120 accuInit ast.Expr,
121 condition ast.Expr,
122 step ast.Expr,
123 result ast.Expr) ast.Expr {
124 return p.exprFactory.NewComprehension(
125 p.newID(ctx), iterRange, iterVar, accuVar, accuInit, condition, step, result)
126}
127
128func (p *parserHelper) newComprehensionTwoVar(ctx any,
129 iterRange ast.Expr,

Callers

nothing calls this directly

Calls 2

newIDMethod · 0.95
NewComprehensionMethod · 0.65

Tested by

no test coverage detected