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

Unified Diff: pkg/analyzer_plugin/lib/src/utilities/completion/completion_core.dart

Issue 2953093002: Update the plugin API (Closed)
Patch Set: Update FixesRequest Created 3 years, 6 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/analyzer_plugin/lib/src/utilities/completion/completion_core.dart
diff --git a/pkg/analyzer_plugin/lib/src/utilities/completion/completion_core.dart b/pkg/analyzer_plugin/lib/src/utilities/completion/completion_core.dart
index 4f68255a4139cf337576abe23d1c0af8db6fbdf4..b8019c1dfe1c18643545ce30c66f6e6b74c1f9c1 100644
--- a/pkg/analyzer_plugin/lib/src/utilities/completion/completion_core.dart
+++ b/pkg/analyzer_plugin/lib/src/utilities/completion/completion_core.dart
@@ -62,26 +62,26 @@ class CompletionCollectorImpl implements CompletionCollector {
}
@override
- void addSuggestion(CompletionSuggestion suggestion) {
- suggestions.add(suggestion);
- }
-
- @override
bool get offsetIsSet => offset != null;
@override
int get suggestionsLength => suggestions.length;
+
+ @override
+ void addSuggestion(CompletionSuggestion suggestion) {
+ suggestions.add(suggestion);
+ }
}
/**
- * Information about the completion request that was made.
- */
-class CompletionRequestImpl implements CompletionRequest {
+* A concrete implementation of [DartCompletionRequest].
+*/
+class DartCompletionRequestImpl implements DartCompletionRequest {
@override
- final int offset;
+ final ResourceProvider resourceProvider;
@override
- final ResourceProvider resourceProvider;
+ final int offset;
@override
final ResolveResult result;
@@ -94,7 +94,7 @@ class CompletionRequestImpl implements CompletionRequest {
/**
* Initialize a newly created request.
*/
- CompletionRequestImpl(this.resourceProvider, this.result, this.offset);
+ DartCompletionRequestImpl(this.resourceProvider, this.offset, this.result);
/**
* Abort the current completion request.
« no previous file with comments | « pkg/analyzer_plugin/lib/src/utilities/assist/assist.dart ('k') | pkg/analyzer_plugin/lib/src/utilities/fixes/fixes.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698