Add AnyNode and AnyNodeRef unions (#4578)
This commit is contained in:
@@ -22,6 +22,7 @@ once_cell = { workspace = true }
|
||||
rustc-hash = { workspace = true }
|
||||
rustpython-literal = { workspace = true }
|
||||
rustpython-parser = { workspace = true }
|
||||
rustpython-ast = { workspace = true }
|
||||
serde = { workspace = true, optional = true }
|
||||
smallvec = { workspace = true }
|
||||
|
||||
|
||||
@@ -6,6 +6,8 @@ pub mod hashable;
|
||||
pub mod helpers;
|
||||
pub mod imports;
|
||||
pub mod newlines;
|
||||
pub mod node;
|
||||
pub mod prelude;
|
||||
pub mod relocate;
|
||||
pub mod source_code;
|
||||
pub mod statement_visitor;
|
||||
|
||||
3221
crates/ruff_python_ast/src/node.rs
Normal file
3221
crates/ruff_python_ast/src/node.rs
Normal file
File diff suppressed because it is too large
Load Diff
2
crates/ruff_python_ast/src/prelude.rs
Normal file
2
crates/ruff_python_ast/src/prelude.rs
Normal file
@@ -0,0 +1,2 @@
|
||||
pub use crate::node::AstNode;
|
||||
pub use rustpython_ast::*;
|
||||
Reference in New Issue
Block a user