mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-30 22:01:47 +00:00
Move SourceCodeLocator to its own module (#522)
This commit is contained in:
parent
9aa91d3d3c
commit
b060ae2f22
11 changed files with 127 additions and 121 deletions
|
@ -9,7 +9,6 @@ use log::debug;
|
|||
use rustpython_parser::lexer::LexResult;
|
||||
use rustpython_parser::{lexer, parser};
|
||||
|
||||
use crate::ast::operations::SourceCodeLocator;
|
||||
use crate::ast::types::Range;
|
||||
use crate::autofix::fixer;
|
||||
use crate::autofix::fixer::fix_file;
|
||||
|
@ -21,6 +20,7 @@ use crate::code_gen::SourceGenerator;
|
|||
use crate::message::Message;
|
||||
use crate::noqa::add_noqa;
|
||||
use crate::settings::Settings;
|
||||
use crate::source_code_locator::SourceCodeLocator;
|
||||
use crate::{cache, fs, noqa};
|
||||
|
||||
/// Collect tokens up to and including the first error.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue