Set comparator start location to beginning of comparison

This commit is contained in:
Charlie Marsh
2022-11-04 16:42:17 -04:00
parent a5b59f3c9d
commit bbeec36fdb
4 changed files with 5 additions and 5 deletions

View File

@@ -800,7 +800,7 @@ NotTest: ast::Expr = {
};
Comparison: ast::Expr = {
<left:Expression> <location:@L> <comparisons:(CompOp Expression)+> <end_location:@R> => {
<location:@L> <left:Expression> <comparisons:(CompOp Expression)+> <end_location:@R> => {
let (ops, comparators) = comparisons.into_iter().unzip();
ast::Expr {
location,