mirror of
https://github.com/RustPython/Parser.git
synced 2025-07-25 14:04:28 +00:00
Implement Default for Location
This commit is contained in:
parent
7f552e4594
commit
2dfd053bed
3 changed files with 10 additions and 4 deletions
|
@ -541,8 +541,8 @@ mod tests {
|
|||
source,
|
||||
StringKind::FString,
|
||||
false,
|
||||
Location::new(1, 0),
|
||||
Location::new(1, source.len() + 3), // 3 for prefix and quotes
|
||||
Location::default(),
|
||||
Location::default().with_col_offset(source.len() + 3), // 3 for prefix and quotes
|
||||
)
|
||||
.parse()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue