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

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

Issue 1470373002: create new Dart specific completion contributor extension point (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: merge 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/provisional/completion/completion_core.dart
diff --git a/pkg/analysis_server/lib/src/provisional/completion/completion_core.dart b/pkg/analysis_server/lib/src/provisional/completion/completion_core.dart
index 7af0ab09bf29702341caac685f1d0416772de8e9..5158e6024ae00b161e2dd83d77a2d5200a826c0d 100644
--- a/pkg/analysis_server/lib/src/provisional/completion/completion_core.dart
+++ b/pkg/analysis_server/lib/src/provisional/completion/completion_core.dart
@@ -7,6 +7,8 @@ library analysis_server.src.provisional.completion.completion_core;
import 'dart:async';
import 'package:analysis_server/plugin/protocol/protocol.dart';
+import 'package:analysis_server/src/analysis_server.dart';
+import 'package:analysis_server/src/plugin/server_plugin.dart';
import 'package:analyzer/file_system/file_system.dart';
import 'package:analyzer/src/generated/engine.dart' show AnalysisContext;
import 'package:analyzer/src/generated/source.dart';
@@ -38,6 +40,16 @@ abstract class CompletionContributor {
*/
abstract class CompletionRequest {
/**
+ * Return the underlying analysis server for this completion request.
+ */
+ AnalysisServer get server;
Brian Wilkerson 2015/11/24 21:31:25 Why do we need the server to be accessible through
danrubel 2015/11/24 22:24:51 We need the resourceProvider and the serverPlugins
+
+ /**
+ * Return the [AnalysisServer]'s [ServerPlugin] for obtaining extensions
+ */
+ ServerPlugin get serverPlugin;
Brian Wilkerson 2015/11/24 21:31:25 I don't think we actually want the server plugin t
danrubel 2015/11/24 22:24:51 The DartCompletionContributor is currently defined
+
+ /**
* Return the analysis context in which the completion is being requested.
*/
AnalysisContext get context;

Powered by Google App Engine
This is Rietveld 408576698