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

Method IterVar

common/ast/expr.go:278–278  ·  view source on GitHub ↗

IterVar returns the iteration variable name. For one-variable comprehensions, the iter var refers to the element value when iterating over a list, or the map key when iterating over a map. For two-variable comprehneions, the iter var refers to the list index or the map key.

()

Source from the content-addressed store, hash-verified

276 // For two-variable comprehneions, the iter var refers to the list index or the
277 // map key.
278 IterVar() string
279
280 // IterVar2 returns the second iteration variable name.
281 //

Callers 13

planComprehensionMethod · 0.65
pruneMethod · 0.65
costComprehensionMethod · 0.65
checkComprehensionMethod · 0.65
CopyMethod · 0.65
constantExprMatcherMethod · 0.65
matchVariableMethod · 0.65
CopyExprMethod · 0.65
SetKindCaseMethod · 0.65
protoComprehensionFunction · 0.65
IterVarMethod · 0.65

Implementers 1

baseComprehensionExprcommon/ast/expr.go

Calls

no outgoing calls

Tested by 1