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

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

Issue 1521883002: Fix lints: unnecessary_brace_in_string_interp (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years 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/common_usage_sorter.dart
diff --git a/pkg/analysis_server/lib/src/services/completion/dart/common_usage_sorter.dart b/pkg/analysis_server/lib/src/services/completion/dart/common_usage_sorter.dart
index fde8bfb2c045b23445e278ab2c90fc3fa2f5ab32..3ebc67ef59a6155f6b0f3417261f40bbebe32b1b 100644
--- a/pkg/analysis_server/lib/src/services/completion/dart/common_usage_sorter.dart
+++ b/pkg/analysis_server/lib/src/services/completion/dart/common_usage_sorter.dart
@@ -92,7 +92,7 @@ class CommonUsageSorter implements DartContributionSorter {
void _updateInvocationRelevance(DartType type, LibraryElement libElem,
Iterable<CompletionSuggestion> suggestions) {
String typeName = type.name;
- List<String> selectors = selectorRelevance['${libElem.name}.${typeName}'];
+ List<String> selectors = selectorRelevance['${libElem.name}.$typeName'];
if (selectors != null) {
for (CompletionSuggestion suggestion in suggestions) {
protocol.Element element = suggestion.element;

Powered by Google App Engine
This is Rietveld 408576698