Fix end location of nodes containing body
This commit is contained in:
@@ -173,7 +173,8 @@ class Foo(A, B):
|
||||
def __init__(self):
|
||||
pass
|
||||
def method_with_default(self, arg='default'):
|
||||
pass";
|
||||
pass
|
||||
";
|
||||
insta::assert_debug_snapshot!(parse_program(source, "<test>").unwrap());
|
||||
}
|
||||
|
||||
|
||||
@@ -62,8 +62,8 @@ expression: "parse_program(source, \"<test>\").unwrap()"
|
||||
},
|
||||
end_location: Some(
|
||||
Location {
|
||||
row: 4,
|
||||
column: 1,
|
||||
row: 3,
|
||||
column: 6,
|
||||
},
|
||||
),
|
||||
custom: (),
|
||||
|
||||
Reference in New Issue
Block a user