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),