mirror of
https://github.com/RustPython/Parser.git
synced 2025-07-24 13:34:52 +00:00
Fix end location of nodes containing body
This commit is contained in:
parent
2b91ffb3ae
commit
2d75aeb276
3 changed files with 9 additions and 6 deletions
|
@ -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: (),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue