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

Function ParserExpressionSizeLimit

cel/options.go:1188–1190  ·  view source on GitHub ↗

ParserExpressionSizeLimit adjusts the number of code points the expression parser is allowed to parse. Defaults are defined in the parser package. A negative value means unbounded.

(limit int)

Source from the content-addressed store, hash-verified

1186// ParserExpressionSizeLimit adjusts the number of code points the expression parser is allowed to parse.
1187// Defaults are defined in the parser package. A negative value means unbounded.
1188func ParserExpressionSizeLimit(limit int) EnvOption {
1189 return setLimit(limitCodePointSize, limit)
1190}
1191
1192// ExpressionNodeLimit adjusts the maximum number of expression nodes permitted during parsing
1193// and checking, including nodes created by macro expansion. Defaults are defined in the parser

Calls 1

setLimitFunction · 0.85