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)
| 1016 | // and checking, including nodes created by macro expansion. Defaults are defined in the parser |
| 1017 | // package (100,000). A negative value means unbounded. |
| 1018 | func 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. |