ValidateBindNestingLimit ensures that cel.bind() macro nesting does not exceed the specified limit. This validator can be useful for preventing arbitrarily nested cel.bind() macro calls.
(limit int)
| 263 | // |
| 264 | // This validator can be useful for preventing arbitrarily nested cel.bind() macro calls. |
| 265 | func ValidateBindNestingLimit(limit int) ASTValidator { |
| 266 | return bindNestingLimitValidator{limit: limit} |
| 267 | } |
| 268 | |
| 269 | type argChecker func(env *Env, call, arg ast.Expr) error |
| 270 |
no outgoing calls