mod builtin; #[cfg(feature = "fold")] mod fold_helpers; mod generic { #![allow(clippy::derive_partial_eq_without_eq)] pub use crate::builtin::*; include!("gen/generic.rs"); } mod impls; #[cfg(feature = "location")] mod source_locator; #[cfg(feature = "unparse")] mod unparse; pub use builtin::*; pub use generic::*; pub use rustpython_parser_core::{text_size, ConversionFlag}; pub type Suite = Vec>; #[cfg(feature = "fold")] pub mod fold { use super::generic::*; include!("gen/fold.rs"); } #[cfg(feature = "visitor")] mod visitor { use super::generic::*; include!("gen/visitor.rs"); } #[cfg(feature = "location")] pub mod located { include!("gen/located.rs"); } #[cfg(feature = "location")] pub use rustpython_parser_core::source_code; #[cfg(feature = "visitor")] pub use visitor::Visitor; #[cfg(feature = "constant-optimization")] mod optimizer; #[cfg(feature = "constant-optimization")] pub use optimizer::ConstantOptimizer;