Flatten rustpython_parser interface

This commit is contained in:
Jeong YunWon 2023-02-22 17:14:20 +09:00
parent a8d4de27ed
commit bf3f3eca62
9 changed files with 174 additions and 184 deletions

View file

@ -86,7 +86,7 @@ impl CompileContext {
}
}
/// Compile an ast::Mod produced from rustpython_parser::parser::parse()
/// Compile an ast::Mod produced from rustpython_parser::parse()
pub fn compile_top(
ast: &ast::Mod,
source_path: String,
@ -2846,7 +2846,7 @@ mod tests {
use super::{CompileOpts, Compiler};
use crate::symboltable::SymbolTable;
use rustpython_compiler_core::CodeObject;
use rustpython_parser::parser;
use rustpython_parser as parser;
fn compile_exec(source: &str) -> CodeObject {
let mut compiler: Compiler = Compiler::new(