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

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

Issue 2949823002: Remove unused implementation of SearchEngine and rename the driver-based implementation (Closed)
Patch Set: Created 3 years, 6 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 'dart:async'; 5 import 'dart:async';
6 6
7 import 'package:analysis_server/src/services/correction/status.dart'; 7 import 'package:analysis_server/src/services/correction/status.dart';
8 import 'package:analysis_server/src/services/index/index.dart'; 8 import 'package:analysis_server/src/services/index/index.dart';
9 import 'package:analysis_server/src/services/refactoring/refactoring.dart'; 9 import 'package:analysis_server/src/services/refactoring/refactoring.dart';
10 import 'package:analysis_server/src/services/search/search_engine.dart'; 10 import 'package:analysis_server/src/services/search/search_engine.dart';
11 import 'package:analysis_server/src/services/search/search_engine_internal2.dart '; 11 import 'package:analysis_server/src/services/search/search_engine_internal.dart' ;
12 import 'package:analyzer/dart/ast/ast.dart'; 12 import 'package:analyzer/dart/ast/ast.dart';
13 import 'package:analyzer/dart/element/element.dart' show Element; 13 import 'package:analyzer/dart/element/element.dart' show Element;
14 import 'package:analyzer/file_system/file_system.dart'; 14 import 'package:analyzer/file_system/file_system.dart';
15 import 'package:analyzer/src/dart/analysis/ast_provider_driver.dart'; 15 import 'package:analyzer/src/dart/analysis/ast_provider_driver.dart';
16 import 'package:analyzer/src/dart/element/ast_provider.dart'; 16 import 'package:analyzer/src/dart/element/ast_provider.dart';
17 import 'package:analyzer/src/generated/source.dart'; 17 import 'package:analyzer/src/generated/source.dart';
18 import 'package:analyzer_plugin/protocol/protocol_common.dart' 18 import 'package:analyzer_plugin/protocol/protocol_common.dart'
19 show 19 show
20 RefactoringProblem, 20 RefactoringProblem,
21 RefactoringProblemSeverity, 21 RefactoringProblemSeverity,
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 Future<Null> indexTestUnit(String code) async { 164 Future<Null> indexTestUnit(String code) async {
165 await resolveTestUnit(code); 165 await resolveTestUnit(code);
166 } 166 }
167 167
168 Future<Null> indexUnit(String file, String code) async { 168 Future<Null> indexUnit(String file, String code) async {
169 addSource(file, code); 169 addSource(file, code);
170 } 170 }
171 171
172 void setUp() { 172 void setUp() {
173 super.setUp(); 173 super.setUp();
174 searchEngine = new SearchEngineImpl2([driver]); 174 searchEngine = new SearchEngineImpl([driver]);
175 astProvider = new AstProviderForDriver(driver); 175 astProvider = new AstProviderForDriver(driver);
176 } 176 }
177 } 177 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698