mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 10:48:32 +00:00
Split SourceLocation
into LineColumn
and SourceLocation
(#17587)
This commit is contained in:
parent
4443f6653c
commit
1c65e0ad25
29 changed files with 695 additions and 537 deletions
|
@ -430,10 +430,10 @@ fn ensure_unchanged_ast(
|
|||
formatted_unsupported_syntax_errors
|
||||
.into_values()
|
||||
.map(|error| {
|
||||
let location = index.source_location(error.start(), formatted_code);
|
||||
let location = index.line_column(error.start(), formatted_code);
|
||||
format!(
|
||||
"{row}:{col} {error}",
|
||||
row = location.row,
|
||||
row = location.line,
|
||||
col = location.column
|
||||
)
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue