Make parser location optional

This commit is contained in:
Jeong YunWon 2023-05-11 04:17:56 +09:00
parent aabc96dde9
commit cbe4e8c5f3
9 changed files with 18 additions and 14 deletions

View file

@ -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