From 65a62b8d326d0aff8f751ea59c7325ee702c998b 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 --- compiler/parser/python.lalrpop | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler/parser/python.lalrpop b/compiler/parser/python.lalrpop index 719cef464..78b713618 100644 --- a/compiler/parser/python.lalrpop +++ b/compiler/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),