configuredExpressionSizeLimit returns the effective expression size code point limit. A zero value means "use the parser default".
()
| 439 | // configuredExpressionSizeLimit returns the effective expression size code point limit. |
| 440 | // A zero value means "use the parser default". |
| 441 | func (e *Env) configuredExpressionSizeLimit() int { |
| 442 | if l := e.limits[limitCodePointSize]; l != 0 { |
| 443 | return l |
| 444 | } |
| 445 | return 100_000 |
| 446 | } |
| 447 | |
| 448 | // Compile combines the Parse and Check phases CEL program compilation to produce an Ast and |
| 449 | // associated issues. |