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); |
} |