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

Method newComprehension

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

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

Callers

nothing calls this directly

Calls 2

newIDMethod · 0.95
NewComprehensionMethod · 0.65

Tested by

no test coverage detected