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

Method newComprehensionTwoVar

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

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

Callers

nothing calls this directly

Calls 2

newIDMethod · 0.95

Tested by

no test coverage detected