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

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

Issue 1310263003: Reformat code to minimize churn (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: 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/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,

Powered by Google App Engine
This is Rietveld 408576698