python_ast/codegen/
mod.rs

1//! Code generation for Python ASTs.
2
3use std::fmt::Debug;
4
5pub mod python_options;
6pub use python_options::*;
7
8/// Reexport the CodeGen from to_tokenstream
9pub use to_tokenstream::CodeGen;
10
11/// A type to track the context of code generation.
12#[derive(Clone, Debug)]
13pub enum CodeGenContext {
14    Module(String),
15    Class,
16    Function,
17    Async(Box<CodeGenContext>),
18}