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

Function ExpressionNodeLimit

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

1016// and checking, including nodes created by macro expansion. Defaults are defined in the parser
1017// package (100,000). A negative value means unbounded.
1018func ExpressionNodeLimit(limit int) EnvOption {
1019 return setLimit(limitExpressionNodeCount, limit)
1020}
1021
1022// ExpressionNestingDepthLimit records the maximum nesting depth permitted for ASTs in the
1023// 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