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

Unified Diff: pkg/analysis_server/lib/completion/completion_core.dart

Issue 1115843003: restructure internal request to implement CompletionRequest API, (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 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
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/domain_completion.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/lib/completion/completion_core.dart
diff --git a/pkg/analysis_server/lib/completion/completion_core.dart b/pkg/analysis_server/lib/completion/completion_core.dart
index d1aca7ae2a0b8d7316fabc5675ec4395681884cd..e4ce2c834cbdc0a3fcd7259e223273b1b97a6aec 100644
--- a/pkg/analysis_server/lib/completion/completion_core.dart
+++ b/pkg/analysis_server/lib/completion/completion_core.dart
@@ -5,6 +5,7 @@
library analysis_server.completion.completion_core;
import 'package:analysis_server/src/protocol.dart';
+import 'package:analyzer/file_system/file_system.dart';
import 'package:analyzer/src/generated/engine.dart';
import 'package:analyzer/src/generated/source.dart';
@@ -32,6 +33,13 @@ abstract class CompletionContributor {
*/
abstract class CompletionRequest {
/**
+ * Return the results that were returned the last time the contributor was
+ * asked for results, or `null` if this is the first request for results at
+ * this location.
+ */
+ //CompletionResult get previousResults;
Brian Wilkerson 2015/04/30 04:01:22 I'm confused by this. If you're proposing that we
danrubel 2015/04/30 05:03:11 I'm not sure so I commented it out. As mentioned a
+
+ /**
* Return the analysis context in which the completion is being requested.
*/
AnalysisContext get context;
@@ -42,11 +50,9 @@ abstract class CompletionRequest {
int get offset;
/**
- * Return the results that were returned the last time the contributor was
- * asked for results, or `null` if this is the first request for results at
- * this location.
+ * Return the resource provider associated with this request.
*/
- CompletionResult get previousResults;
+ ResourceProvider get provider;
Brian Wilkerson 2015/04/30 04:01:22 The name 'provider' is fairly generic. Perhaps 're
danrubel 2015/04/30 05:03:11 Good point. Renamed.
/**
* Return the source in which the completion is being requested.
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/domain_completion.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698