@@ -233,13 +233,15 @@ mod tests {
233233 Ok ( vec![ as_statement( ast:: Expression {
234234 location: ast:: Location :: new( 1 , 1 ) ,
235235 node: ast:: ExpressionType :: Lambda {
236- args: ast:: Parameters {
236+ args: Box :: new ( ast:: Parameters {
237237 args: vec![
238238 ast:: Parameter {
239+ location: ast:: Location :: new( 1 , 8 ) ,
239240 arg: String :: from( "x" ) ,
240241 annotation: None ,
241242 } ,
242243 ast:: Parameter {
244+ location: ast:: Location :: new( 1 , 11 ) ,
243245 arg: String :: from( "y" ) ,
244246 annotation: None ,
245247 }
@@ -249,7 +251,7 @@ mod tests {
249251 kwarg: ast:: Varargs :: None ,
250252 defaults: vec![ ] ,
251253 kw_defaults: vec![ ] ,
252- } ,
254+ } ) ,
253255 body: Box :: new( ast:: Expression {
254256 location: ast:: Location :: new( 1 , 16 ) ,
255257 node: ast:: ExpressionType :: Binop {
@@ -308,8 +310,9 @@ mod tests {
308310 node: ast:: StatementType :: FunctionDef {
309311 is_async: false ,
310312 name: String :: from( "__init__" ) ,
311- args: ast:: Parameters {
313+ args: Box :: new ( ast:: Parameters {
312314 args: vec![ ast:: Parameter {
315+ location: ast:: Location :: new( 2 , 15 ) ,
313316 arg: String :: from( "self" ) ,
314317 annotation: None ,
315318 } ] ,
@@ -318,7 +321,7 @@ mod tests {
318321 kwarg: ast:: Varargs :: None ,
319322 defaults: vec![ ] ,
320323 kw_defaults: vec![ ] ,
321- } ,
324+ } ) ,
322325 body: vec![ ast:: Statement {
323326 location: ast:: Location :: new( 3 , 3 ) ,
324327 node: ast:: StatementType :: Pass ,
@@ -332,13 +335,15 @@ mod tests {
332335 node: ast:: StatementType :: FunctionDef {
333336 is_async: false ,
334337 name: String :: from( "method_with_default" ) ,
335- args: ast:: Parameters {
338+ args: Box :: new ( ast:: Parameters {
336339 args: vec![
337340 ast:: Parameter {
341+ location: ast:: Location :: new( 4 , 26 ) ,
338342 arg: String :: from( "self" ) ,
339343 annotation: None ,
340344 } ,
341345 ast:: Parameter {
346+ location: ast:: Location :: new( 4 , 32 ) ,
342347 arg: String :: from( "arg" ) ,
343348 annotation: None ,
344349 }
@@ -348,7 +353,7 @@ mod tests {
348353 kwarg: ast:: Varargs :: None ,
349354 defaults: vec![ make_string( "default" , 4 , 37 ) ] ,
350355 kw_defaults: vec![ ] ,
351- } ,
356+ } ) ,
352357 body: vec![ ast:: Statement {
353358 location: ast:: Location :: new( 5 , 3 ) ,
354359 node: ast:: StatementType :: Pass ,
@@ -377,6 +382,7 @@ mod tests {
377382 element: mk_ident( "x" , 1 , 2 ) ,
378383 } ) ,
379384 generators: vec![ ast:: Comprehension {
385+ location: ast:: Location :: new( 1 , 4 ) ,
380386 target: mk_ident( "y" , 1 , 8 ) ,
381387 iter: mk_ident( "z" , 1 , 13 ) ,
382388 ifs: vec![ ] ,
@@ -400,6 +406,7 @@ mod tests {
400406 } ) ,
401407 generators: vec![
402408 ast:: Comprehension {
409+ location: ast:: Location :: new( 1 , 4 ) ,
403410 target: ast:: Expression {
404411 location: ast:: Location :: new( 1 , 8 ) ,
405412 node: ast:: ExpressionType :: Tuple {
@@ -410,6 +417,7 @@ mod tests {
410417 ifs: vec![ ] ,
411418 } ,
412419 ast:: Comprehension {
420+ location: ast:: Location :: new( 1 , 19 ) ,
413421 target: mk_ident( "a" , 1 , 23 ) ,
414422 iter: mk_ident( "b" , 1 , 28 ) ,
415423 ifs: vec![
0 commit comments