Index: pkg/analysis_server/lib/src/services/refactoring/rename_unit_member.dart |
diff --git a/pkg/analysis_server/lib/src/services/refactoring/rename_unit_member.dart b/pkg/analysis_server/lib/src/services/refactoring/rename_unit_member.dart |
index 2d2f79795d26678a212a6a86d5cc78558b5d33e4..8ab7de352ea0fe235fa4e04021a5232a60b114aa 100644 |
--- a/pkg/analysis_server/lib/src/services/refactoring/rename_unit_member.dart |
+++ b/pkg/analysis_server/lib/src/services/refactoring/rename_unit_member.dart |
@@ -198,7 +198,8 @@ class _RenameUnitMemberValidator { |
if (hasDisplayName(shadow, name)) { |
String message = format( |
"Reference to renamed {0} will be shadowed by {1} '{2}'.", |
- getElementKindName(element), getElementKindName(shadow), |
+ getElementKindName(element), |
+ getElementKindName(shadow), |
getElementQualifiedName(shadow)); |
result.addError(message, newLocation_fromElement(shadow)); |
} |
@@ -249,10 +250,13 @@ class _RenameUnitMemberValidator { |
continue; |
} |
// OK, reference will be shadowed be the element being renamed |
- String message = format(isRename |
+ String message = format( |
+ isRename |
? "Renamed {0} will shadow {1} '{2}'." |
- : "Created {0} will shadow {1} '{2}'.", elementKind.displayName, |
- getElementKindName(member), getElementQualifiedName(member)); |
+ : "Created {0} will shadow {1} '{2}'.", |
+ elementKind.displayName, |
+ getElementKindName(member), |
+ getElementQualifiedName(member)); |
result.addError(message, newLocation_fromMatch(memberReference)); |
} |
} |