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

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

Issue 2672973002: Replace computeNode() with AstProvider in search. (Closed)
Patch Set: Created 3 years, 10 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 library test.services.refactoring; 5 library test.services.refactoring;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:analysis_server/plugin/protocol/protocol.dart' 9 import 'package:analysis_server/plugin/protocol/protocol.dart'
10 show 10 show
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 } 180 }
181 } 181 }
182 182
183 void setUp() { 183 void setUp() {
184 super.setUp(); 184 super.setUp();
185 if (enableNewAnalysisDriver) { 185 if (enableNewAnalysisDriver) {
186 searchEngine = new SearchEngineImpl2([driver]); 186 searchEngine = new SearchEngineImpl2([driver]);
187 astProvider = new AstProviderForDriver(driver); 187 astProvider = new AstProviderForDriver(driver);
188 } else { 188 } else {
189 index = createMemoryIndex(); 189 index = createMemoryIndex();
190 searchEngine = new SearchEngineImpl(index); 190 searchEngine = new SearchEngineImpl(
191 index, (_) => new AstProviderForContext(context));
191 astProvider = new AstProviderForContext(context); 192 astProvider = new AstProviderForContext(context);
192 } 193 }
193 } 194 }
194 } 195 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698