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

Method newComprehensionTwoVar

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

Source from the content-addressed store, hash-verified

130}
131
132func (p *parserHelper) newComprehensionTwoVar(ctx any,
133 iterRange ast.Expr,
134 iterVar, iterVar2,
135 accuVar string,
136 accuInit ast.Expr,
137 condition ast.Expr,
138 step ast.Expr,
139 result ast.Expr) ast.Expr {
140 return p.exprFactory.NewComprehensionTwoVar(
141 p.newID(ctx), iterRange, iterVar, iterVar2, accuVar, accuInit, condition, step, result)
142}
143
144func (p *parserHelper) newID(ctx any) int64 {
145 if id, isID := ctx.(int64); isID {

Callers

nothing calls this directly

Calls 2

newIDMethod · 0.95

Tested by

no test coverage detected