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