Skip to content

validateComprehensionNestingLimit

validateComprehensionNestingLimit(limit): ASTValidator

validateComprehensionNestingLimit ensures comprehension nesting does not exceed the limit.

Empty iteration ranges do not contribute to nesting because they have no looping cost. This also permits comprehension-shaped local variable bindings such as cel.bind.

number

ASTValidator