Index: pkg/analysis_server/lib/src/services/completion/dart_completion_manager.dart |
diff --git a/pkg/analysis_server/lib/src/services/completion/dart_completion_manager.dart b/pkg/analysis_server/lib/src/services/completion/dart_completion_manager.dart |
index 61860799ef2f41969be2749a736579aeccae3795..06c3c6a8af077fd715de028337e0620d8896eb4f 100644 |
--- a/pkg/analysis_server/lib/src/services/completion/dart_completion_manager.dart |
+++ b/pkg/analysis_server/lib/src/services/completion/dart_completion_manager.dart |
@@ -322,17 +322,20 @@ class DartCompletionRequest extends CompletionRequestImpl { |
Source source, int offset, this.cache) |
: super(server, context, source, offset); |
- factory DartCompletionRequest.from(CompletionRequestImpl request, |
- DartCompletionCache cache) => new DartCompletionRequest( |
- request.server, request.context, request.source, request.offset, cache); |
+ factory DartCompletionRequest.from( |
+ CompletionRequestImpl request, DartCompletionCache cache) => |
+ new DartCompletionRequest(request.server, request.context, request.source, |
+ request.offset, cache); |
/** |
* Return the original text from the [replacementOffset] to the [offset] |
* that can be used to filter the suggestions on the server side. |
*/ |
String get filterText { |
- return context.getContents(source).data.substring( |
- replacementOffset, offset); |
+ return context |
+ .getContents(source) |
+ .data |
+ .substring(replacementOffset, offset); |
} |
/** |
@@ -378,9 +381,12 @@ class DartCompletionRequest extends CompletionRequestImpl { |
// because [DartCompletionCache] may be caching that suggestion |
// for future completion requests |
_suggestions[index] = new CompletionSuggestion( |
- CompletionSuggestionKind.IDENTIFIER, suggestion.relevance, |
- suggestion.completion, suggestion.selectionOffset, |
- suggestion.selectionLength, suggestion.isDeprecated, |
+ CompletionSuggestionKind.IDENTIFIER, |
+ suggestion.relevance, |
+ suggestion.completion, |
+ suggestion.selectionOffset, |
+ suggestion.selectionLength, |
+ suggestion.isDeprecated, |
suggestion.isPotential, |
declaringType: suggestion.declaringType, |
parameterNames: suggestion.parameterNames, |