Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(642)

Unified Diff: pkg/analysis_server/test/services/refactoring/rename_local_test.dart

Issue 725143004: Format and sort analyzer and analysis_server packages. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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() {}

Powered by Google App Engine
This is Rietveld 408576698