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