Lines Matching refs:recursion_depth
13 int recursion_depth; /* current recursion depth */ member
142 if (++state->recursion_depth > state->recursion_limit) { in validate_constant()
171 --state->recursion_depth; in validate_constant()
187 if (++state->recursion_depth > state->recursion_limit) { in validate_expr()
367 state->recursion_depth--; in validate_expr()
509 if (++state->recursion_depth > state->recursion_limit) { in validate_pattern()
647 state->recursion_depth--; in validate_pattern()
679 if (++state->recursion_depth > state->recursion_limit) { in validate_stmt()
861 state->recursion_depth--; in validate_stmt()
936 starting_recursion_depth = (tstate->recursion_depth < INT_MAX / COMPILER_STACK_FRAME_SCALE) ? in _PyAST_Validate()
937 tstate->recursion_depth * COMPILER_STACK_FRAME_SCALE : tstate->recursion_depth; in _PyAST_Validate()
938 state.recursion_depth = starting_recursion_depth; in _PyAST_Validate()
965 if (res && state.recursion_depth != starting_recursion_depth) { in _PyAST_Validate()
968 starting_recursion_depth, state.recursion_depth); in _PyAST_Validate()