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

Side by Side Diff: pkg/analysis_server/test/services/refactoring/abstract_rename.dart

Issue 2879273002: Make server use the common protocol classes (Closed)
Patch Set: Created 3 years, 7 months 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 unified diff | Download patch
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698