@@ -494,7 +494,7 @@ def test_bad_arguments
494
494
RequiredParameterNode ( :@a ) ,
495
495
RequiredParameterNode ( :$A ) ,
496
496
RequiredParameterNode ( :@@a ) ,
497
- ] , [ ] , [ ] , nil , [ ] , nil , nil ) ,
497
+ ] , [ ] , nil , [ ] , [ ] , nil , nil ) ,
498
498
nil ,
499
499
[ :A , :@a , :$A , :@@a ] ,
500
500
Location ( ) ,
@@ -560,9 +560,9 @@ def test_do_not_allow_trailing_commas_in_method_parameters
560
560
ParametersNode (
561
561
[ RequiredParameterNode ( :a ) , RequiredParameterNode ( :b ) , RequiredParameterNode ( :c ) ] ,
562
562
[ ] ,
563
- [ ] ,
564
563
nil ,
565
564
[ ] ,
565
+ [ ] ,
566
566
nil ,
567
567
nil
568
568
) ,
@@ -588,7 +588,7 @@ def test_do_not_allow_trailing_commas_in_lambda_parameters
588
588
Location ( ) ,
589
589
Location ( ) ,
590
590
BlockParametersNode (
591
- ParametersNode ( [ RequiredParameterNode ( :a ) , RequiredParameterNode ( :b ) ] , [ ] , [ ] , nil , [ ] , nil , nil ) ,
591
+ ParametersNode ( [ RequiredParameterNode ( :a ) , RequiredParameterNode ( :b ) ] , [ ] , nil , [ ] , [ ] , nil , nil ) ,
592
592
[ ] ,
593
593
Location ( ) ,
594
594
Location ( )
@@ -644,8 +644,8 @@ def test_method_parameters_after_block
644
644
ParametersNode (
645
645
[ ] ,
646
646
[ ] ,
647
- [ RequiredParameterNode ( :a ) ] ,
648
647
nil ,
648
+ [ RequiredParameterNode ( :a ) ] ,
649
649
[ ] ,
650
650
nil ,
651
651
BlockParameterNode ( :block , Location ( ) , Location ( ) )
@@ -669,7 +669,7 @@ def test_method_with_arguments_after_anonymous_block
669
669
:foo ,
670
670
Location ( ) ,
671
671
nil ,
672
- ParametersNode ( [ ] , [ ] , [ RequiredParameterNode ( :a ) ] , nil , [ ] , nil , BlockParameterNode ( nil , nil , Location ( ) ) ) ,
672
+ ParametersNode ( [ ] , [ ] , nil , [ RequiredParameterNode ( :a ) ] , [ ] , nil , BlockParameterNode ( nil , nil , Location ( ) ) ) ,
673
673
nil ,
674
674
[ :& , :a ] ,
675
675
Location ( ) ,
@@ -693,8 +693,8 @@ def test_method_parameters_after_arguments_forwarding
693
693
ParametersNode (
694
694
[ ] ,
695
695
[ ] ,
696
- [ RequiredParameterNode ( :a ) ] ,
697
696
nil ,
697
+ [ RequiredParameterNode ( :a ) ] ,
698
698
[ ] ,
699
699
ForwardingParameterNode ( ) ,
700
700
nil
@@ -721,8 +721,8 @@ def test_keywords_parameters_before_required_parameters
721
721
ParametersNode (
722
722
[ ] ,
723
723
[ ] ,
724
- [ RequiredParameterNode ( :a ) ] ,
725
724
nil ,
725
+ [ RequiredParameterNode ( :a ) ] ,
726
726
[ KeywordParameterNode ( :b , Location ( ) , nil ) ] ,
727
727
nil ,
728
728
nil
@@ -747,10 +747,10 @@ def test_rest_keywords_parameters_before_required_parameters
747
747
Location ( ) ,
748
748
nil ,
749
749
ParametersNode (
750
- [ ] ,
751
750
[ ] ,
752
751
[ ] ,
753
752
nil ,
753
+ [ ] ,
754
754
[ KeywordParameterNode ( :b , Location ( ) , nil ) ] ,
755
755
KeywordRestParameterNode ( :rest , Location ( ) , Location ( ) ) ,
756
756
nil
@@ -775,7 +775,7 @@ def test_double_arguments_forwarding
775
775
:foo ,
776
776
Location ( ) ,
777
777
nil ,
778
- ParametersNode ( [ ] , [ ] , [ ] , nil , [ ] , ForwardingParameterNode ( ) , nil ) ,
778
+ ParametersNode ( [ ] , [ ] , nil , [ ] , [ ] , ForwardingParameterNode ( ) , nil ) ,
779
779
nil ,
780
780
[ :"..." ] ,
781
781
Location ( ) ,
@@ -799,8 +799,8 @@ def test_multiple_error_in_parameters_order
799
799
ParametersNode (
800
800
[ ] ,
801
801
[ ] ,
802
- [ RequiredParameterNode ( :a ) ] ,
803
802
nil ,
803
+ [ RequiredParameterNode ( :a ) ] ,
804
804
[ KeywordParameterNode ( :b , Location ( ) , nil ) ] ,
805
805
KeywordRestParameterNode ( :args , Location ( ) , Location ( ) ) ,
806
806
nil
@@ -829,8 +829,8 @@ def test_switching_to_optional_arguments_twice
829
829
ParametersNode (
830
830
[ ] ,
831
831
[ ] ,
832
- [ RequiredParameterNode ( :a ) ] ,
833
832
nil ,
833
+ [ RequiredParameterNode ( :a ) ] ,
834
834
[ KeywordParameterNode ( :b , Location ( ) , nil ) ] ,
835
835
KeywordRestParameterNode ( :args , Location ( ) , Location ( ) ) ,
836
836
nil
@@ -859,8 +859,8 @@ def test_switching_to_named_arguments_twice
859
859
ParametersNode (
860
860
[ ] ,
861
861
[ ] ,
862
- [ RequiredParameterNode ( :a ) ] ,
863
862
nil ,
863
+ [ RequiredParameterNode ( :a ) ] ,
864
864
[ KeywordParameterNode ( :b , Location ( ) , nil ) ] ,
865
865
KeywordRestParameterNode ( :args , Location ( ) , Location ( ) ) ,
866
866
nil
@@ -892,8 +892,8 @@ def test_returning_to_optional_parameters_multiple_times
892
892
OptionalParameterNode ( :b , Location ( ) , Location ( ) , IntegerNode ( IntegerBaseFlags ::DECIMAL ) ) ,
893
893
OptionalParameterNode ( :d , Location ( ) , Location ( ) , IntegerNode ( IntegerBaseFlags ::DECIMAL ) )
894
894
] ,
895
- [ RequiredParameterNode ( :c ) , RequiredParameterNode ( :e ) ] ,
896
895
nil ,
896
+ [ RequiredParameterNode ( :c ) , RequiredParameterNode ( :e ) ] ,
897
897
[ ] ,
898
898
nil ,
899
899
nil
@@ -954,7 +954,7 @@ def test_do_not_allow_forward_arguments_in_lambda_literals
954
954
Location ( ) ,
955
955
Location ( ) ,
956
956
Location ( ) ,
957
- BlockParametersNode ( ParametersNode ( [ ] , [ ] , [ ] , nil , [ ] , ForwardingParameterNode ( ) , nil ) , [ ] , Location ( ) , Location ( ) ) ,
957
+ BlockParametersNode ( ParametersNode ( [ ] , [ ] , nil , [ ] , [ ] , ForwardingParameterNode ( ) , nil ) , [ ] , Location ( ) , Location ( ) ) ,
958
958
nil
959
959
)
960
960
@@ -973,7 +973,7 @@ def test_do_not_allow_forward_arguments_in_blocks
973
973
nil ,
974
974
BlockNode (
975
975
[ :"..." ] ,
976
- BlockParametersNode ( ParametersNode ( [ ] , [ ] , [ ] , nil , [ ] , ForwardingParameterNode ( ) , nil ) , [ ] , Location ( ) , Location ( ) ) ,
976
+ BlockParametersNode ( ParametersNode ( [ ] , [ ] , nil , [ ] , [ ] , ForwardingParameterNode ( ) , nil ) , [ ] , Location ( ) , Location ( ) ) ,
977
977
nil ,
978
978
Location ( ) ,
979
979
Location ( )
@@ -1046,7 +1046,7 @@ def test_duplicated_parameter_names
1046
1046
:foo ,
1047
1047
Location ( ) ,
1048
1048
nil ,
1049
- ParametersNode ( [ RequiredParameterNode ( :a ) , RequiredParameterNode ( :b ) , RequiredParameterNode ( :a ) ] , [ ] , [ ] , nil , [ ] , nil , nil ) ,
1049
+ ParametersNode ( [ RequiredParameterNode ( :a ) , RequiredParameterNode ( :b ) , RequiredParameterNode ( :a ) ] , [ ] , nil , [ ] , [ ] , nil , nil ) ,
1050
1050
nil ,
1051
1051
[ :a , :b ] ,
1052
1052
Location ( ) ,
@@ -1066,7 +1066,7 @@ def test_duplicated_parameter_names
1066
1066
:foo ,
1067
1067
Location ( ) ,
1068
1068
nil ,
1069
- ParametersNode ( [ RequiredParameterNode ( :a ) , RequiredParameterNode ( :b ) ] , [ ] , [ ] , RestParameterNode ( :a , Location ( ) , Location ( ) ) , [ ] , nil , nil ) ,
1069
+ ParametersNode ( [ RequiredParameterNode ( :a ) , RequiredParameterNode ( :b ) ] , [ ] , RestParameterNode ( :a , Location ( ) , Location ( ) ) , [ ] , [ ] , nil , nil ) ,
1070
1070
nil ,
1071
1071
[ :a , :b ] ,
1072
1072
Location ( ) ,
@@ -1085,7 +1085,7 @@ def test_duplicated_parameter_names
1085
1085
:foo ,
1086
1086
Location ( ) ,
1087
1087
nil ,
1088
- ParametersNode ( [ RequiredParameterNode ( :a ) , RequiredParameterNode ( :b ) ] , [ ] , [ ] , nil , [ ] , KeywordRestParameterNode ( :a , Location ( ) , Location ( ) ) , nil ) ,
1088
+ ParametersNode ( [ RequiredParameterNode ( :a ) , RequiredParameterNode ( :b ) ] , [ ] , nil , [ ] , [ ] , KeywordRestParameterNode ( :a , Location ( ) , Location ( ) ) , nil ) ,
1089
1089
nil ,
1090
1090
[ :a , :b ] ,
1091
1091
Location ( ) ,
@@ -1104,7 +1104,7 @@ def test_duplicated_parameter_names
1104
1104
:foo ,
1105
1105
Location ( ) ,
1106
1106
nil ,
1107
- ParametersNode ( [ RequiredParameterNode ( :a ) , RequiredParameterNode ( :b ) ] , [ ] , [ ] , nil , [ ] , nil , BlockParameterNode ( :a , Location ( ) , Location ( ) ) ) ,
1107
+ ParametersNode ( [ RequiredParameterNode ( :a ) , RequiredParameterNode ( :b ) ] , [ ] , nil , [ ] , [ ] , nil , BlockParameterNode ( :a , Location ( ) , Location ( ) ) ) ,
1108
1108
nil ,
1109
1109
[ :a , :b ] ,
1110
1110
Location ( ) ,
@@ -1123,7 +1123,7 @@ def test_duplicated_parameter_names
1123
1123
:foo ,
1124
1124
Location ( ) ,
1125
1125
nil ,
1126
- ParametersNode ( [ ] , [ OptionalParameterNode ( :a , Location ( ) , Location ( ) , IntegerNode ( IntegerBaseFlags ::DECIMAL ) ) ] , [ RequiredParameterNode ( :b ) ] , RestParameterNode ( :c , Location ( ) , Location ( ) ) , [ ] , nil , nil ) ,
1126
+ ParametersNode ( [ ] , [ OptionalParameterNode ( :a , Location ( ) , Location ( ) , IntegerNode ( IntegerBaseFlags ::DECIMAL ) ) ] , RestParameterNode ( :c , Location ( ) , Location ( ) ) , [ RequiredParameterNode ( :b ) ] , [ ] , nil , nil ) ,
1127
1127
nil ,
1128
1128
[ :a , :b , :c ] ,
1129
1129
Location ( ) ,
0 commit comments