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

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

Issue 1347283005: refactor ContributionSorter to use new API (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: merge Created 5 years, 3 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/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
index 526d69d283dac4307dc7ce47475ff2763e94d9d2..430429525bff67f6fe0d1021acd209583d2a3a91 100644
--- a/pkg/analysis_server/lib/src/services/completion/completion_dart.dart
+++ b/pkg/analysis_server/lib/src/services/completion/completion_dart.dart
@@ -6,6 +6,7 @@ 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/completion/dart/completion_target.dart';
import 'package:analysis_server/src/services/completion/completion_core.dart';
import 'package:analyzer/src/generated/ast.dart';
@@ -25,10 +26,16 @@ class DartCompletionRequestImpl extends CompletionRequestImpl
final bool isResolved;
/**
+ * The completion target. This determines what part of the parse tree
+ * will receive the newly inserted text.
+ */
+ final CompletionTarget target;
+
+ /**
* Initialize a newly created completion request based on the given arguments.
*/
DartCompletionRequestImpl(
- CompletionRequest request, this.unit, this.isResolved)
+ CompletionRequest request, this.unit, this.isResolved, this.target)
: super(request.context, request.resourceProvider, request.source,
request.offset);
}

Powered by Google App Engine
This is Rietveld 408576698