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

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

Issue 2672973002: Replace computeNode() with AstProvider in search. (Closed)
Patch Set: Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: pkg/analysis_server/test/services/refactoring/abstract_refactoring.dart
diff --git a/pkg/analysis_server/test/services/refactoring/abstract_refactoring.dart b/pkg/analysis_server/test/services/refactoring/abstract_refactoring.dart
index 68efbcc726604dae2326a6163b61ffcfb4abd2ad..8ea2d8d767ee7f88f372cb4aa15178baabaef4b2 100644
--- a/pkg/analysis_server/test/services/refactoring/abstract_refactoring.dart
+++ b/pkg/analysis_server/test/services/refactoring/abstract_refactoring.dart
@@ -187,7 +187,8 @@ abstract class RefactoringTest extends AbstractSingleUnitTest {
astProvider = new AstProviderForDriver(driver);
} else {
index = createMemoryIndex();
- searchEngine = new SearchEngineImpl(index);
+ searchEngine = new SearchEngineImpl(
+ index, (_) => new AstProviderForContext(context));
astProvider = new AstProviderForContext(context);
}
}

Powered by Google App Engine
This is Rietveld 408576698