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

Unified Diff: pkg/analysis_server/lib/src/services/completion/completion_dart.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 | « pkg/analysis_server/lib/src/services/completion/completion_core.dart ('k') | no next file » | 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_dart.dart
diff --git a/pkg/analysis_server/lib/src/services/completion/completion_dart.dart b/pkg/analysis_server/lib/src/services/completion/completion_dart.dart
new file mode 100644
index 0000000000000000000000000000000000000000..2dd4eeb51cc99c57cf375a3324e6448f3a9d9883
--- /dev/null
+++ b/pkg/analysis_server/lib/src/services/completion/completion_dart.dart
@@ -0,0 +1,34 @@
+// 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:analysis_server/completion/completion_dart.dart';
+import 'package:analysis_server/src/services/completion/completion_core.dart';
+import 'package:analyzer/src/generated/ast.dart';
+
+/**
+ * The information about a requested list of completions within a Dart file.
+ */
+class DartCompletionRequestImpl extends CompletionRequestImpl
+ implements DartCompletionRequest {
+ /**
+ * The compilation unit in which the completion was requested.
+ */
+ final CompilationUnit unit;
+
+ /**
+ * A flag indicating whether the compilation [unit] is resolved.
+ */
+ final bool isResolved;
+
+ /**
+ * Initialize a newly created completion request based on the given arguments.
+ */
+ DartCompletionRequestImpl(
+ CompletionRequest request, this.unit, this.isResolved)
+ : super(request.context, request.resourceProvider, request.source,
+ request.offset);
+}
« no previous file with comments | « pkg/analysis_server/lib/src/services/completion/completion_core.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698