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

Function ExpressionNestingDepthLimit

cel/options.go:1030–1032  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.
1030func 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.

Calls 1

setLimitFunction · 0.85