Add end locations to all nodes (#296)

This commit is contained in:
Charlie Marsh
2022-10-02 12:49:48 -04:00
committed by GitHub
parent 4d0d433af9
commit 46e6a1b3be
5 changed files with 13 additions and 11 deletions

View File

@@ -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,

View File

@@ -5,7 +5,7 @@ expression: checks
- kind: RaiseNotImplemented
location:
row: 2
column: 25
column: 11
fix: ~
- kind: RaiseNotImplemented
location:

View File

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