Fix IfExp location

This commit is contained in:
harupy 2022-12-24 13:38:33 +09:00
parent b20571ad0f
commit 6fc0d42d4a
3 changed files with 4 additions and 4 deletions

View file

@ -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: (),