mirror of
https://github.com/RustPython/Parser.git
synced 2025-08-03 18:29:04 +00:00
Fix IfExp location
This commit is contained in:
parent
b20571ad0f
commit
6fc0d42d4a
3 changed files with 4 additions and 4 deletions
|
@ -731,7 +731,7 @@ YieldExpr: ast::Expr = {
|
|||
};
|
||||
|
||||
Test<Goal>: ast::Expr = {
|
||||
<body:OrTest<"all">> <location:@L> "if" <test:OrTest<"all">> "else" <orelse:Test<"all">> <end_location:@R> => ast::Expr {
|
||||
<location:@L> <body:OrTest<"all">> "if" <test:OrTest<"all">> "else" <orelse:Test<"all">> <end_location:@R> => ast::Expr {
|
||||
location,
|
||||
end_location: Some(end_location),
|
||||
custom: (),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue