Separate byteoffset ast and located ast

This commit is contained in:
Jeong YunWon 2023-05-06 21:35:43 +09:00
parent f47dfca4e3
commit a14e43e03a
21 changed files with 893 additions and 562 deletions

View file

@ -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!()
}