ruff/crates/ruff_python_ast/src/snapshots
Zanie Blue 389fe13c93
Implement visitation of type aliases and parameters (#5927)
<!--
Thank you for contributing to Ruff! To help us out with reviewing,
please consider the following:

- Does this pull request include a summary of the change? (See below.)
- Does this pull request include a descriptive title?
- Does this pull request include references to any relevant issues?
-->

## Summary

<!-- What's the purpose of the change? What does it do, and why? -->

Part of #5062 
Requires https://github.com/astral-sh/RustPython-Parser/pull/32

Adds visitation of type alias statements and type parameters in class
and function definitions.

Duplicates tests for `PreorderVisitor` into `Visitor` with new
snapshots. Testing required node implementations for the `TypeParam`
enum, which is a chunk of the diff and the reason we need `Ranged`
implementations in
https://github.com/astral-sh/RustPython-Parser/pull/32.

## Test Plan

<!-- How was it tested? -->

Adds unit tests with snapshots.
2023-07-25 17:11:26 +00:00
..
ruff_python_ast__visitor__tests__class_type_parameters.snap Implement visitation of type aliases and parameters (#5927) 2023-07-25 17:11:26 +00:00
ruff_python_ast__visitor__tests__compare.snap Implement visitation of type aliases and parameters (#5927) 2023-07-25 17:11:26 +00:00
ruff_python_ast__visitor__tests__decorators.snap Implement visitation of type aliases and parameters (#5927) 2023-07-25 17:11:26 +00:00
ruff_python_ast__visitor__tests__dict_comprehension.snap Implement visitation of type aliases and parameters (#5927) 2023-07-25 17:11:26 +00:00
ruff_python_ast__visitor__tests__function_arguments.snap Implement visitation of type aliases and parameters (#5927) 2023-07-25 17:11:26 +00:00
ruff_python_ast__visitor__tests__function_positional_only_with_default.snap Implement visitation of type aliases and parameters (#5927) 2023-07-25 17:11:26 +00:00
ruff_python_ast__visitor__tests__function_type_parameters.snap Implement visitation of type aliases and parameters (#5927) 2023-07-25 17:11:26 +00:00
ruff_python_ast__visitor__tests__list_comprehension.snap Implement visitation of type aliases and parameters (#5927) 2023-07-25 17:11:26 +00:00
ruff_python_ast__visitor__tests__match_class_pattern.snap Implement visitation of type aliases and parameters (#5927) 2023-07-25 17:11:26 +00:00
ruff_python_ast__visitor__tests__set_comprehension.snap Implement visitation of type aliases and parameters (#5927) 2023-07-25 17:11:26 +00:00
ruff_python_ast__visitor__tests__type_aliases.snap Implement visitation of type aliases and parameters (#5927) 2023-07-25 17:11:26 +00:00