ruff/crates/ruff_python_ast
Douglas Creager 98ef564170
Remove AstNode and AnyNode (#15479)
While looking into potential AST optimizations, I noticed the `AstNode`
trait and `AnyNode` type aren't used anywhere in Ruff or Red Knot. It
looks like they might be historical artifacts of previous ways of
consuming AST nodes?

- `AstNode::cast`, `AstNode::cast_ref`, and `AstNode::can_cast` are not
used anywhere.
- Since `cast_ref` isn't needed anymore, the `Ref` associated type isn't
either.

This is a pure refactoring, with no intended behavior changes.
2025-01-17 17:11:00 -05:00
..
src Remove AstNode and AnyNode (#15479) 2025-01-17 17:11:00 -05:00
ast.toml Remove AstNode and AnyNode (#15479) 2025-01-17 17:11:00 -05:00
Cargo.toml Remove the optional salsa dependency from the AST crate (#14363) 2024-11-15 16:46:04 +00:00
generate.py Remove AstNode and AnyNode (#15479) 2025-01-17 17:11:00 -05:00