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

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

Issue 1242223002: Concrete implementation of completion request (from new API) (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 5 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/services/completion/completion_dart.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/lib/src/services/completion/completion_core.dart
diff --git a/pkg/analysis_server/lib/src/services/completion/completion_core.dart b/pkg/analysis_server/lib/src/services/completion/completion_core.dart
new file mode 100644
index 0000000000000000000000000000000000000000..a8ed44bc3c17d67a1c905edc0897b9c4d1e49035
--- /dev/null
+++ b/pkg/analysis_server/lib/src/services/completion/completion_core.dart
@@ -0,0 +1,41 @@
+// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+library analysis_server.src.services.completion.completion_dart;
+
+import 'package:analysis_server/completion/completion_core.dart';
+import 'package:analyzer/file_system/file_system.dart';
+import 'package:analyzer/src/generated/engine.dart';
+import 'package:analyzer/src/generated/source.dart';
+
+/**
+ * The information about a requested list of completions.
+ */
+class CompletionRequestImpl implements CompletionRequest {
+ /**
+ * The analysis context in which the completion is being requested.
+ */
+ AnalysisContext context;
+
+ /**
+ * The resource provider associated with this request.
+ */
+ ResourceProvider resourceProvider;
+
+ /**
+ * The source in which the completion is being requested.
+ */
+ Source source;
+
+ /**
+ * The offset within the source at which the completion is being requested.
+ */
+ int offset;
+
+ /**
+ * Initialize a newly created completion request based on the given arguments.
+ */
+ CompletionRequestImpl(
+ this.context, this.resourceProvider, this.source, this.offset);
+}
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/services/completion/completion_dart.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698