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

Unified Diff: pkg/analysis_server/lib/src/services/completion/contribution_sorter.dart

Issue 1347283005: refactor ContributionSorter to use new API (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: merge 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/lib/src/services/completion/contribution_sorter.dart
diff --git a/pkg/analysis_server/lib/src/services/completion/contribution_sorter.dart b/pkg/analysis_server/lib/src/services/completion/contribution_sorter.dart
index a702f66921c5bcd014674e0e55e65852fd83618b..737a837827034da88550c499ea2c8707fa40dda1 100644
--- a/pkg/analysis_server/lib/src/services/completion/contribution_sorter.dart
+++ b/pkg/analysis_server/lib/src/services/completion/contribution_sorter.dart
@@ -4,8 +4,8 @@
library services.completion.sorter;
+import 'package:analysis_server/completion/completion_dart.dart';
import 'package:analysis_server/src/protocol.dart';
-import 'package:analysis_server/src/services/completion/dart_completion_manager.dart';
/**
* The abstract class `ContributionSorter` defines the behavior of objects
@@ -21,5 +21,6 @@ abstract class ContributionSorter {
* in the given completion context may not be resolved.
* This method should execute quickly and not block.
*/
- void sort(DartCompletionRequest request);
+ void sort(DartCompletionRequest request,
+ Iterable<CompletionSuggestion> suggestions);
}

Powered by Google App Engine
This is Rietveld 408576698