mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-28 12:55:05 +00:00
Extract LineIndex
independent methods from Locator
(#13938)
This commit is contained in:
parent
f8eb547fb4
commit
9f3a38d408
171 changed files with 1348 additions and 1284 deletions
|
@ -8,14 +8,14 @@ use serde::{Deserialize, Serialize};
|
|||
use ruff_text_size::{Ranged, TextRange, TextSize};
|
||||
|
||||
pub use crate::line_index::{LineIndex, OneIndexed};
|
||||
pub use crate::locator::Locator;
|
||||
pub use crate::line_ranges::LineRanges;
|
||||
pub use crate::newlines::{
|
||||
find_newline, Line, LineEnding, NewlineWithTrailingNewline, UniversalNewlineIterator,
|
||||
UniversalNewlines,
|
||||
};
|
||||
|
||||
mod line_index;
|
||||
mod locator;
|
||||
mod line_ranges;
|
||||
mod newlines;
|
||||
|
||||
/// Gives access to the source code of a file and allows mapping between [`TextSize`] and [`SourceLocation`].
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue