From 56c73cc63df07fa541ddde5a88f82f5a88df02e7 Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Fri, 10 Feb 2023 10:39:40 -0500 Subject: [PATCH] Use entire range for generators-as-arguments --- parser/python.lalrpop | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/parser/python.lalrpop b/parser/python.lalrpop index 719cef4..78b7136 100644 --- a/parser/python.lalrpop +++ b/parser/python.lalrpop @@ -1274,11 +1274,11 @@ ArgumentList: ArgumentList = { }; FunctionArgument: (Option<(ast::Location, ast::Location, Option)>, ast::Expr) = { - => { + => { let expr = match c { Some(c) => ast::Expr { - location: e.location, - end_location: e.end_location, + location, + end_location: Some(end_location), custom: (), node: ast::ExprKind::GeneratorExp { elt: Box::new(e),