mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-17 09:00:26 +00:00
Move {AnyNodeRef, AstNode} to ruff_python_ast crate root (#8030)
This is a do-over of https://github.com/astral-sh/ruff/pull/8011, which I accidentally merged into a non-`main` branch. Sorry!
This commit is contained in:
parent
d85950ce5a
commit
d685107638
72 changed files with 76 additions and 75 deletions
|
@ -74,11 +74,11 @@ impl<'a> Index<NodeId> for Nodes<'a> {
|
|||
}
|
||||
}
|
||||
|
||||
/// A reference to an AST node. Like [`ruff_python_ast::node::AnyNodeRef`], but wraps the node
|
||||
/// A reference to an AST node. Like [`ruff_python_ast::AnyNodeRef`], but wraps the node
|
||||
/// itself (like [`Stmt`]) rather than the narrowed type (like [`ruff_python_ast::StmtAssign`]).
|
||||
///
|
||||
/// TODO(charlie): Replace with [`ruff_python_ast::node::AnyNodeRef`]. This requires migrating
|
||||
/// the rest of the codebase to use [`ruff_python_ast::node::AnyNodeRef`] and related abstractions,
|
||||
/// TODO(charlie): Replace with [`ruff_python_ast::AnyNodeRef`]. This requires migrating
|
||||
/// the rest of the codebase to use [`ruff_python_ast::AnyNodeRef`] and related abstractions,
|
||||
/// like [`ruff_python_ast::ExpressionRef`] instead of [`Expr`].
|
||||
#[derive(Copy, Clone, Debug, PartialEq)]
|
||||
pub enum NodeRef<'a> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue