mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-27 20:42:10 +00:00
Introduce ExpressionRef
(#6637)
## Summary This PR revives the `ExpressionRef` concept introduced in https://github.com/astral-sh/ruff/pull/5644, motivated by the change we want to make in https://github.com/astral-sh/ruff/pull/6575 to narrow the type of the expression that can be passed to `parenthesized_range`. ## Test Plan `cargo test`
This commit is contained in:
parent
fa7442da2f
commit
1334232168
6 changed files with 317 additions and 29 deletions
|
@ -5,6 +5,7 @@ pub mod all;
|
|||
pub mod call_path;
|
||||
pub mod comparable;
|
||||
pub mod docstrings;
|
||||
mod expression;
|
||||
pub mod hashable;
|
||||
pub mod helpers;
|
||||
pub mod identifier;
|
||||
|
@ -20,6 +21,7 @@ pub mod types;
|
|||
pub mod visitor;
|
||||
pub mod whitespace;
|
||||
|
||||
pub use expression::*;
|
||||
pub use nodes::*;
|
||||
|
||||
pub trait Ranged {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue