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

Unified Diff: pkg/analysis_server/lib/src/services/refactoring/rename_constructor.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_constructor.dart
diff --git a/pkg/analysis_server/lib/src/services/refactoring/rename_constructor.dart b/pkg/analysis_server/lib/src/services/refactoring/rename_constructor.dart
index d5c489a353c65ba13264ed1ccaa800627d4a6bd0..622a6943f24f94c6eefd53446c7564876dfc867e 100644
--- a/pkg/analysis_server/lib/src/services/refactoring/rename_constructor.dart
+++ b/pkg/analysis_server/lib/src/services/refactoring/rename_constructor.dart
@@ -59,7 +59,7 @@ class RenameConstructorRefactoringImpl extends RenameRefactoringImpl {
// append declaration
references.add(_createDeclarationReference());
// update references
- String replacement = newName.isEmpty ? '' : '.${newName}';
+ String replacement = newName.isEmpty ? '' : '.$newName';
for (SourceReference reference in references) {
reference.addEdit(change, replacement);
}

Powered by Google App Engine
This is Rietveld 408576698