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

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

Issue 1383313002: Move completion APIs to a private location (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: formatting Created 5 years, 2 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
Index: pkg/analysis_server/lib/src/provisional/completion/completion_dart.dart
diff --git a/pkg/analysis_server/lib/completion/completion_dart.dart b/pkg/analysis_server/lib/src/provisional/completion/completion_dart.dart
similarity index 92%
rename from pkg/analysis_server/lib/completion/completion_dart.dart
rename to pkg/analysis_server/lib/src/provisional/completion/completion_dart.dart
index 1ddd5a095be3d404a7928ebce2d61c7dc622d219..488f30d0be08ba4385ea4727757710c33fe2646c 100644
--- a/pkg/analysis_server/lib/completion/completion_dart.dart
+++ b/pkg/analysis_server/lib/src/provisional/completion/completion_dart.dart
@@ -2,14 +2,14 @@
// 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.completion.completion_dart;
+library analysis_server.src.provisional.completion.completion_dart;
-import 'package:analysis_server/completion/completion_core.dart';
import 'package:analysis_server/src/protocol.dart';
+import 'package:analysis_server/src/provisional/completion/completion_core.dart';
+import 'package:analysis_server/src/provisional/completion/dart/completion_target.dart';
import 'package:analyzer/src/generated/ast.dart';
import 'package:analyzer/src/generated/engine.dart';
import 'package:analyzer/src/generated/source.dart';
-import 'package:analysis_server/completion/dart/completion_target.dart';
/**
* An object used to produce completions for a specific error within a Dart
@@ -66,9 +66,10 @@ abstract class DartCompletionRequest extends CompletionRequest {
bool get isResolved;
/**
- * Return the compilation unit in which the completion was requested.
+ * Return the completion target. This determines what part of the parse tree
+ * will receive the newly inserted text.
*/
- CompilationUnit get unit;
+ CompletionTarget get target;
/**
* Cached information from a prior code completion operation.
@@ -76,10 +77,9 @@ abstract class DartCompletionRequest extends CompletionRequest {
//DartCompletionCache get cache;
/**
- * Return the completion target. This determines what part of the parse tree
- * will receive the newly inserted text.
+ * Return the compilation unit in which the completion was requested.
*/
- CompletionTarget get target;
+ CompilationUnit get unit;
/**
* Information about the types of suggestions that should be included.

Powered by Google App Engine
This is Rietveld 408576698