Index: pkg/analysis_server/test/services/refactoring/rename_local_test.dart |
diff --git a/pkg/analysis_server/test/services/refactoring/rename_local_test.dart b/pkg/analysis_server/test/services/refactoring/rename_local_test.dart |
index 9fad28ef7fb7e5a2798b4a946cd66d71b584bf9c..226733e5ad105b94e3a667e733815d775557549d 100644 |
--- a/pkg/analysis_server/test/services/refactoring/rename_local_test.dart |
+++ b/pkg/analysis_server/test/services/refactoring/rename_local_test.dart |
@@ -128,20 +128,6 @@ main2() { |
return assertRefactoringConditionsOK(); |
} |
- test_checkFinalConditions_shadows_OK_namedParameterReference() { |
- indexTestUnit(''' |
-void f({newName}) {} |
-main() { |
- var test = 0; |
- f(newName: test); |
-} |
-'''); |
- createRenameRefactoringAtString('test = 0'); |
- // check status |
- refactoring.newName = 'newName'; |
- return assertRefactoringFinalConditionsOK(); |
- } |
- |
test_checkFinalConditions_shadows_classMember() { |
indexTestUnit(''' |
class A { |
@@ -181,6 +167,20 @@ class A { |
return assertRefactoringConditionsOK(); |
} |
+ test_checkFinalConditions_shadows_OK_namedParameterReference() { |
+ indexTestUnit(''' |
+void f({newName}) {} |
+main() { |
+ var test = 0; |
+ f(newName: test); |
+} |
+'''); |
+ createRenameRefactoringAtString('test = 0'); |
+ // check status |
+ refactoring.newName = 'newName'; |
+ return assertRefactoringFinalConditionsOK(); |
+ } |
+ |
test_checkFinalConditions_shadows_topLevelFunction() { |
indexTestUnit(''' |
newName() {} |