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

Unified Diff: pkg/analysis_server/lib/src/services/refactoring/rename_unit_member.dart

Issue 1310263003: Reformat code to minimize churn (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 months 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_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));
}
}

Powered by Google App Engine
This is Rietveld 408576698