mirror of
https://github.com/astral-sh/ruff.git
synced 2026-12-04 01:38:32 +08:00
## Summary Today, `ruff_python_ast` has two implementations of `parenthesized_range`, but only tests use the source-tokenizing one. This PR removes the unused implementation and moves the remaining distinct cases into the token-based implementation's tests. Testing: All AST integration tests pass, and retired instruction counts show no regression in Ruff.
Integration tests for ruff_python_ast
This crate includes integration tests for the ruff_python_ast crate.
The reason for having a separate crate is to avoid introducing a dev circular
dependency between the ruff_python_parser crate and the ruff_python_ast crate.
This crate shouldn't include any code, only tests.
Reference:
rust-analyzerissue: https://github.com/rust-lang/rust-analyzer/issues/3390- Ruff's pull request: https://github.com/astral-sh/ruff/pull/11261