mirror of
https://github.com/RustPython/Parser.git
synced 2025-08-27 13:54:55 +00:00
Separate byteoffset ast and located ast
This commit is contained in:
parent
f47dfca4e3
commit
a14e43e03a
21 changed files with 893 additions and 562 deletions
|
@ -8,8 +8,13 @@ pub mod marshal;
|
|||
mod mode;
|
||||
|
||||
pub use bytecode::*;
|
||||
pub use error::BaseError;
|
||||
pub use location::Location;
|
||||
pub use error::{BaseError, LocatedError};
|
||||
pub use location::{Location, LocationRange};
|
||||
pub use mode::Mode;
|
||||
|
||||
pub use ruff_text_size as text_size; // re-export mandatory and frequently accessed dependency
|
||||
|
||||
// FIXME: temp code
|
||||
pub fn to_location(offset: &text_size::TextSize, source: &str) -> Location {
|
||||
todo!()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue