Split SourceLocation into LineColumn and SourceLocation (#17587)

This commit is contained in:
Micha Reiser 2025-04-27 11:27:33 +01:00 committed by GitHub
parent 4443f6653c
commit 1c65e0ad25
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
29 changed files with 695 additions and 537 deletions

View file

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