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

Unified Diff: pkg/analysis_server/test/services/completion/completion_test_util.dart

Issue 1359113002: Use IndexContributor(s) in LocalIndex. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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/completion/completion_test_util.dart
diff --git a/pkg/analysis_server/test/services/completion/completion_test_util.dart b/pkg/analysis_server/test/services/completion/completion_test_util.dart
index 7cfdffd84cc235125a4a807f0f1fe9a846e28152..45eb0fac6d3cb1a5854e9ad15f5681eaeebe7fd5 100644
--- a/pkg/analysis_server/test/services/completion/completion_test_util.dart
+++ b/pkg/analysis_server/test/services/completion/completion_test_util.dart
@@ -52,7 +52,7 @@ abstract class AbstractCompletionTest extends AbstractContextTest {
void addResolvedUnit(String file, String code) {
Source source = addSource(file, code);
CompilationUnit unit = resolveLibraryUnit(source);
- index.indexUnit(context, unit);
+ index.index(context, unit);
}
void addTestSource(String content) {
@@ -518,7 +518,7 @@ abstract class AbstractCompletionTest extends AbstractContextTest {
CompilationUnit unit =
context.getResolvedCompilationUnit2(librarySource, librarySource);
if (unit != null) {
- index.indexUnit(context, unit);
+ index.index(context, unit);
}
}
@@ -529,7 +529,7 @@ abstract class AbstractCompletionTest extends AbstractContextTest {
result.changeNotices.forEach((ChangeNotice notice) {
CompilationUnit unit = notice.resolvedDartUnit;
if (unit != null) {
- index.indexUnit(context, unit);
+ index.index(context, unit);
}
});

Powered by Google App Engine
This is Rietveld 408576698