OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 import 'package:analysis_server/protocol/protocol_generated.dart' hide Element; | |
6 import 'package:analysis_server/src/services/correction/namespace.dart'; | 5 import 'package:analysis_server/src/services/correction/namespace.dart'; |
7 import 'package:analysis_server/src/services/refactoring/refactoring.dart'; | 6 import 'package:analysis_server/src/services/refactoring/refactoring.dart'; |
8 import 'package:analyzer/dart/ast/ast.dart'; | 7 import 'package:analyzer/dart/ast/ast.dart'; |
9 import 'package:analyzer/dart/element/element.dart'; | 8 import 'package:analyzer/dart/element/element.dart'; |
| 9 import 'package:analyzer_plugin/protocol/protocol_common.dart' hide Element; |
10 import 'package:test/test.dart'; | 10 import 'package:test/test.dart'; |
11 | 11 |
12 import 'abstract_refactoring.dart'; | 12 import 'abstract_refactoring.dart'; |
13 | 13 |
14 /** | 14 /** |
15 * The base class for all [RenameRefactoring] tests. | 15 * The base class for all [RenameRefactoring] tests. |
16 */ | 16 */ |
17 class RenameRefactoringTest extends RefactoringTest { | 17 class RenameRefactoringTest extends RefactoringTest { |
18 RenameRefactoring refactoring; | 18 RenameRefactoring refactoring; |
19 | 19 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 for (SourceFileEdit fileEdit in refactoringChange.edits) { | 66 for (SourceFileEdit fileEdit in refactoringChange.edits) { |
67 for (SourceEdit edit in fileEdit.edits) { | 67 for (SourceEdit edit in fileEdit.edits) { |
68 if (edit.id == id) { | 68 if (edit.id == id) { |
69 return edit; | 69 return edit; |
70 } | 70 } |
71 } | 71 } |
72 } | 72 } |
73 return null; | 73 return null; |
74 } | 74 } |
75 } | 75 } |
OLD | NEW |