mirror of
https://github.com/astral-sh/ruff
synced 2026-01-11 00:24:13 -05:00
Make parser location optional
This commit is contained in:
@@ -113,7 +113,9 @@
|
||||
#![doc(html_root_url = "https://docs.rs/rustpython-parser/")]
|
||||
|
||||
pub use rustpython_ast as ast;
|
||||
pub use rustpython_parser_core::{source_code, text_size, Mode};
|
||||
#[cfg(feature = "location")]
|
||||
pub use rustpython_parser_core::source_code;
|
||||
pub use rustpython_parser_core::{text_size, Mode};
|
||||
|
||||
mod function;
|
||||
// Skip flattening lexer to distinguish from full parser
|
||||
|
||||
Reference in New Issue
Block a user