mirror of
https://github.com/RustPython/Parser.git
synced 2025-07-16 01:25:25 +00:00
Add with_col_offset and with_row_offset to Location
This commit is contained in:
parent
b6647b0171
commit
72185fecd5
4 changed files with 44 additions and 8 deletions
|
@ -168,7 +168,7 @@ impl SymbolTableError {
|
|||
pub fn into_codegen_error(self, source_path: String) -> CodegenError {
|
||||
CodegenError {
|
||||
error: CodegenErrorType::SyntaxError(self.error),
|
||||
location: Location::new(self.location.row(), self.location.column() + 1),
|
||||
location: self.location.with_col_offset(1),
|
||||
source_path,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue