mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-30 22:01:47 +00:00
Move CallPath
into its own module (#3847)
This commit is contained in:
parent
2f90157ce2
commit
d822e08111
34 changed files with 129 additions and 102 deletions
|
@ -208,9 +208,10 @@ impl Utf8Index {
|
|||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use crate::source_code::locator::{AsciiIndex, Index, Utf8Index};
|
||||
use rustpython_parser::ast::Location;
|
||||
|
||||
use crate::source_code::locator::{AsciiIndex, Index, Utf8Index};
|
||||
|
||||
fn index_ascii(content: &str) -> AsciiIndex {
|
||||
match Index::from(content) {
|
||||
Index::Ascii(ascii) => ascii,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue