Index: pkg/analysis_server/lib/src/services/completion/common_usage_computer.dart |
diff --git a/pkg/analysis_server/lib/src/services/completion/common_usage_computer.dart b/pkg/analysis_server/lib/src/services/completion/common_usage_computer.dart |
index 5c7d340b41e455d09dbfb5dddc25dd31da455629..83d695cb2cb490a195a6c2c0ae0bd50aa54e9222 100644 |
--- a/pkg/analysis_server/lib/src/services/completion/common_usage_computer.dart |
+++ b/pkg/analysis_server/lib/src/services/completion/common_usage_computer.dart |
@@ -5,8 +5,8 @@ |
library services.completion.computer.dart.relevance; |
import 'package:analysis_server/src/protocol_server.dart' as protocol; |
-import 'package:analysis_server/src/protocol_server.dart' show |
- CompletionSuggestion, CompletionSuggestionKind; |
+import 'package:analysis_server/src/protocol_server.dart' |
+ show CompletionSuggestion, CompletionSuggestionKind; |
import 'package:analysis_server/src/services/completion/dart_completion_manager.dart'; |
import 'package:analyzer/src/generated/ast.dart'; |
import 'package:analyzer/src/generated/element.dart'; |
@@ -17,7 +17,8 @@ import 'package:analyzer/src/generated/element.dart'; |
* The names are ordered from most relevant to least relevant. |
* Names not listed are considered equally less relevant than those listed. |
*/ |
-const Map<String, List<String>> defaultSelectorRelevance = const {// |
+const Map<String, List<String>> defaultSelectorRelevance = const { |
+ // |
// Sample implementation which updates the relevance of the following |
// new Random().nextInt(...) |
// new Random().nextDouble(...) |
@@ -84,8 +85,8 @@ class CommonUsageComputer { |
* Adjusts the relevance of all method suggestions based upon the given |
* target type and library. |
*/ |
- void _updateInvocationRelevance(DartCompletionRequest request, DartType type, |
- LibraryElement libElem) { |
+ void _updateInvocationRelevance( |
+ DartCompletionRequest request, DartType type, LibraryElement libElem) { |
String typeName = type.name; |
List<String> selectors = selectorRelevance['${libElem.name}.${typeName}']; |
if (selectors != null) { |