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

Unified Diff: pkg/analysis_server/lib/src/services/refactoring/rename_import.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/refactoring/rename_import.dart
diff --git a/pkg/analysis_server/lib/src/services/refactoring/rename_import.dart b/pkg/analysis_server/lib/src/services/refactoring/rename_import.dart
index 4dcd752f7508c5143924de3d509a202df6b09fae..0d9c0c65e50dc8cdb25b8d1719b47a93ffbf06fd 100644
--- a/pkg/analysis_server/lib/src/services/refactoring/rename_import.dart
+++ b/pkg/analysis_server/lib/src/services/refactoring/rename_import.dart
@@ -60,7 +60,7 @@ class RenameImportRefactoringImpl extends RenameRefactoringImpl {
} else {
if (prefix == null) {
SourceRange range = rangeStartLength(element.uriEnd, 0);
- edit = newSourceEdit_range(range, " as ${newName}");
+ edit = newSourceEdit_range(range, " as $newName");
} else {
int offset = element.prefixOffset;
int length = prefix.nameLength;

Powered by Google App Engine
This is Rietveld 408576698