Index: pkg/analysis_server/test/services/correction/fix_test.dart |
diff --git a/pkg/analysis_server/test/services/correction/fix_test.dart b/pkg/analysis_server/test/services/correction/fix_test.dart |
index 3570b294d942b4dad4cad4de0760325c62ac0ad0..6aacb6abedff41aac408b117fa8c281d9a6ad70d 100644 |
--- a/pkg/analysis_server/test/services/correction/fix_test.dart |
+++ b/pkg/analysis_server/test/services/correction/fix_test.dart |
@@ -175,6 +175,16 @@ class Test { |
'''); |
} |
+ test_addMissingParameter_function_positional_hasNamed() async { |
+ resolveTestUnit(''' |
+test({int a}) {} |
+main() { |
+ test(1); |
+} |
+'''); |
+ await assertNoFix(DartFixKind.ADD_MISSING_PARAMETER_POSITIONAL); |
+ } |
+ |
test_addMissingParameter_function_positional_hasZero() async { |
resolveTestUnit(''' |
test() {} |
@@ -192,6 +202,23 @@ main() { |
'''); |
} |
+ test_addMissingParameter_function_required_hasNamed() async { |
+ resolveTestUnit(''' |
+test({int a}) {} |
+main() { |
+ test(1); |
+} |
+'''); |
+ await assertHasFix( |
+ DartFixKind.ADD_MISSING_PARAMETER_REQUIRED, |
+ ''' |
+test(int i, {int a}) {} |
+main() { |
+ test(1); |
+} |
+'''); |
+ } |
+ |
test_addMissingParameter_function_required_hasOne() async { |
resolveTestUnit(''' |
test(int a) {} |