@@ -19,10 +19,10 @@ def test_module_name_recoverable
1919 Location ( ) ,
2020 ConstantReadNode ( :Parent ) ,
2121 StatementsNode (
22- [ ModuleNode ( [ ] , Location ( ) , MissingNode ( ) , nil , Location ( ) , "" , :"" ) ]
22+ [ ModuleNode ( [ ] , Location ( ) , MissingNode ( ) , nil , Location ( ) , : "", :"" ) ]
2323 ) ,
2424 Location ( ) ,
25- " Parent" ,
25+ : Parent,
2626 :Parent
2727 )
2828
@@ -394,7 +394,7 @@ def test_module_definition_in_method_body
394394 Location ( ) ,
395395 nil ,
396396 nil ,
397- StatementsNode ( [ ModuleNode ( [ ] , Location ( ) , ConstantReadNode ( :A ) , nil , Location ( ) , "A" , :A ) ] ) ,
397+ StatementsNode ( [ ModuleNode ( [ ] , Location ( ) , ConstantReadNode ( :A ) , nil , Location ( ) , :A , :A ) ] ) ,
398398 [ ] ,
399399 Location ( ) ,
400400 nil ,
@@ -425,7 +425,7 @@ def test_module_definition_in_method_body_within_block
425425 BlockNode (
426426 [ ] ,
427427 nil ,
428- StatementsNode ( [ ModuleNode ( [ ] , Location ( ) , ConstantReadNode ( :Foo ) , nil , Location ( ) , " Foo" , :Foo ) ] ) ,
428+ StatementsNode ( [ ModuleNode ( [ ] , Location ( ) , ConstantReadNode ( :Foo ) , nil , Location ( ) , : Foo, :Foo ) ] ) ,
429429 Location ( ) ,
430430 Location ( )
431431 ) ,
@@ -465,7 +465,7 @@ def test_class_definition_in_method_body
465465 nil ,
466466 nil ,
467467 Location ( ) ,
468- "A" ,
468+ :A ,
469469 :A
470470 ) ]
471471 ) ,
@@ -981,7 +981,7 @@ def test_dont_allow_return_inside_class_body
981981 nil ,
982982 StatementsNode ( [ ReturnNode ( Location ( ) , nil ) ] ) ,
983983 Location ( ) ,
984- "A" ,
984+ :A ,
985985 :A
986986 )
987987
@@ -997,7 +997,7 @@ def test_dont_allow_return_inside_module_body
997997 ConstantReadNode ( :A ) ,
998998 StatementsNode ( [ ReturnNode ( Location ( ) , nil ) ] ) ,
999999 Location ( ) ,
1000- "A" ,
1000+ :A ,
10011001 :A
10021002 )
10031003
0 commit comments