ExpressionNestingDepthLimit records the maximum nesting depth permitted for ASTs in the environment configuration so that the value round-trips through env.Config export/import. ASTs loaded outside the parser (e.g. via ParsedExprToAst / CheckedExprToAst) bypass the parser's recursion limit, so thos
(limit int)
| 1028 | // Embedders that fully control their AST inputs and want to skip the check can construct the AST |
| 1029 | // through the common/ast package directly rather than the cel conversion helpers. |
| 1030 | func ExpressionNestingDepthLimit(limit int) EnvOption { |
| 1031 | return setLimit(limitMaxASTDepth, limit) |
| 1032 | } |
| 1033 | |
| 1034 | // RegexProgramSizeLimit caps the maximum regex program plan size permitted for regular expressions. |
| 1035 | // A negative or zero value means unbounded. |