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

Unified Diff: tests/lib/mirrors/stringify.dart

Issue 2771453003: Format all tests. (Closed)
Patch Set: Format files Created 3 years, 8 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: tests/lib/mirrors/stringify.dart
diff --git a/tests/lib/mirrors/stringify.dart b/tests/lib/mirrors/stringify.dart
index 51298e97bb2e9f0a6ae863054a01ce9100dffe80..9047c9ab41526ee48427c03235e235ca8a6d0b96 100644
--- a/tests/lib/mirrors/stringify.dart
+++ b/tests/lib/mirrors/stringify.dart
@@ -117,14 +117,16 @@ stringifyMethod(MethodMirror method) {
stringifyDependencies(LibraryMirror l) {
n(s) => s is Symbol ? MirrorSystem.getName(s) : s;
compareDep(a, b) {
- if (a.targetLibrary == b.targetLibrary) {
- if ((a.prefix != null) && (b.prefix != null)) {
- return n(a.prefix).compareTo(n(b.prefix));
- }
- return a.prefix == null ? 1 : -1;
+ if (a.targetLibrary == b.targetLibrary) {
+ if ((a.prefix != null) && (b.prefix != null)) {
+ return n(a.prefix).compareTo(n(b.prefix));
}
- return n(a.targetLibrary.simpleName).compareTo(n(b.targetLibrary.simpleName));
+ return a.prefix == null ? 1 : -1;
+ }
+ return n(a.targetLibrary.simpleName)
+ .compareTo(n(b.targetLibrary.simpleName));
}
+
compareCom(a, b) => n(a.identifier).compareTo(n(b.identifier));
compareFirst(a, b) => a[0].compareTo(b[0]);
sortBy(c, p) => new List.from(c)..sort(p);

Powered by Google App Engine
This is Rietveld 408576698