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

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

Issue 1447503002: update completion sorter to new API (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 1 month 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/dart_completion_manager.dart
diff --git a/pkg/analysis_server/lib/src/services/completion/dart_completion_manager.dart b/pkg/analysis_server/lib/src/services/completion/dart_completion_manager.dart
index 161197d513a05e5008bb9277578b370f14357f4f..0a23c17499274fad7532f35080057071c0ff8b61 100644
--- a/pkg/analysis_server/lib/src/services/completion/dart_completion_manager.dart
+++ b/pkg/analysis_server/lib/src/services/completion/dart_completion_manager.dart
@@ -181,8 +181,10 @@ class DartCompletionManager extends CompletionManager {
return c.computeFast(request);
});
});
- contributionSorter.sort(
- new OldRequestWrapper(request), request.suggestions);
+ // TODO(danrubel) Process the AnalysisRequest returned by the
+ // contribution sorter. At this point, the target unit has been fully
+ // resolved, thus no need for additional resolution, but in the future...
+ contributionSorter.sort(request, request.suggestions);
Brian Wilkerson 2015/11/14 16:59:24 Given that this one line will turn into multiple l
danrubel 2015/11/17 06:58:45 Good point. I'll address that in a subsequent CL.
danrubel 2015/11/17 23:12:54 https://codereview.chromium.org/1449333002/
if (todo.isEmpty) {
sendResults(request, todo.isEmpty);
@@ -223,8 +225,11 @@ class DartCompletionManager extends CompletionManager {
performance.logElapseTime(completeTag);
bool last = --count == 0;
if (changed || last) {
- contributionSorter.sort(
- new OldRequestWrapper(request), request.suggestions);
+ // TODO(danrubel) Process the AnalysisRequest returned by the
+ // contribution sorter. At this point, the target unit has been
+ // fully resolved, thus no need for additional resolution,
+ // but in the future...
+ contributionSorter.sort(request, request.suggestions);
sendResults(request, last);
}
});

Powered by Google App Engine
This is Rietveld 408576698