mirror of
https://github.com/astral-sh/ruff
synced 2026-01-22 14:00:51 -05:00
Add end locations to all nodes (#296)
This commit is contained in:
@@ -1046,6 +1046,7 @@ where
|
||||
self.handle_node_store(
|
||||
&Expr::new(
|
||||
excepthandler.location,
|
||||
excepthandler.end_location,
|
||||
ExprKind::Name {
|
||||
id: name.to_string(),
|
||||
ctx: ExprContext::Store,
|
||||
@@ -1064,6 +1065,7 @@ where
|
||||
self.handle_node_store(
|
||||
&Expr::new(
|
||||
excepthandler.location,
|
||||
excepthandler.end_location,
|
||||
ExprKind::Name {
|
||||
id: name.to_string(),
|
||||
ctx: ExprContext::Store,
|
||||
|
||||
@@ -5,7 +5,7 @@ expression: checks
|
||||
- kind: RaiseNotImplemented
|
||||
location:
|
||||
row: 2
|
||||
column: 25
|
||||
column: 11
|
||||
fix: ~
|
||||
- kind: RaiseNotImplemented
|
||||
location:
|
||||
|
||||
@@ -5,27 +5,27 @@ expression: checks
|
||||
- kind: NoAssertEquals
|
||||
location:
|
||||
row: 1
|
||||
column: 5
|
||||
column: 1
|
||||
fix:
|
||||
content: assertEqual
|
||||
start:
|
||||
row: 1
|
||||
column: 6
|
||||
column: 2
|
||||
end:
|
||||
row: 1
|
||||
column: 18
|
||||
column: 14
|
||||
applied: false
|
||||
- kind: NoAssertEquals
|
||||
location:
|
||||
row: 2
|
||||
column: 5
|
||||
column: 1
|
||||
fix:
|
||||
content: assertEqual
|
||||
start:
|
||||
row: 2
|
||||
column: 6
|
||||
column: 2
|
||||
end:
|
||||
row: 2
|
||||
column: 18
|
||||
column: 14
|
||||
applied: false
|
||||
|
||||
|
||||
Reference in New Issue
Block a user