Function rustpython_vm::compiler::codegen::compile::compile_top
source · pub fn compile_top(
ast: &Mod<SourceRange>,
source_path: String,
mode: Mode,
opts: CompileOpts
) -> Result<CodeObject<ConstantData>, LocatedError<CodegenErrorType>>
Expand description
Compile an located_ast::Mod produced from rustpython_parser::parse()