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

Function ExpressionNodeLimit

cel/options.go:1195–1197  ·  view source on GitHub ↗

ExpressionNodeLimit adjusts the maximum number of expression nodes permitted during parsing and checking, including nodes created by macro expansion. Defaults are defined in the parser package (100,000). A negative value means unbounded.

(limit int)

Source from the content-addressed store, hash-verified

1193// and checking, including nodes created by macro expansion. Defaults are defined in the parser
1194// package (100,000). A negative value means unbounded.
1195func ExpressionNodeLimit(limit int) EnvOption {
1196 return setLimit(limitExpressionNodeCount, limit)
1197}
1198
1199// ExpressionNestingDepthLimit records the maximum nesting depth permitted for ASTs in the
1200// environment configuration so that the value round-trips through env.Config export/import.

Callers 2

TestExpressionNodeLimitFunction · 0.85

Calls 1

setLimitFunction · 0.85

Tested by 2

TestExpressionNodeLimitFunction · 0.68