mirror of
https://github.com/RustPython/Parser.git
synced 2025-08-03 18:29:04 +00:00
Fix location
This commit is contained in:
parent
7b9e7e0443
commit
1f7a9e5cdc
1 changed files with 2 additions and 2 deletions
|
@ -756,7 +756,7 @@ LambdaDef: ast::Expr = {
|
|||
}
|
||||
|
||||
OrTest: ast::Expr = {
|
||||
<e1:AndTest> <location:@L> <e2:("or" AndTest)*> <end_location:@R> => {
|
||||
<location:@L> <e1:AndTest> <e2:("or" AndTest)*> <end_location:@R> => {
|
||||
if e2.is_empty() {
|
||||
e1
|
||||
} else {
|
||||
|
@ -773,7 +773,7 @@ OrTest: ast::Expr = {
|
|||
};
|
||||
|
||||
AndTest: ast::Expr = {
|
||||
<e1:NotTest> <location:@L> <e2:("and" NotTest)*> <end_location:@R> => {
|
||||
<location:@L> <e1:NotTest> <e2:("and" NotTest)*> <end_location:@R> => {
|
||||
if e2.is_empty() {
|
||||
e1
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue