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

Function ExpressionNestingDepthLimit

cel/options.go:1207–1209  ·  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

1205// Embedders that fully control their AST inputs and want to skip the check can construct the AST
1206// through the common/ast package directly rather than the cel conversion helpers.
1207func ExpressionNestingDepthLimit(limit int) EnvOption {
1208 return setLimit(limitMaxASTDepth, limit)
1209}
1210
1211// RegexProgramSizeLimit caps the maximum regex program plan size permitted for regular expressions.
1212// A negative or zero value means unbounded.

Calls 1

setLimitFunction · 0.85