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

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

Issue 969113002: Reformat (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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/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) {

Powered by Google App Engine
This is Rietveld 408576698