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: sdk/lib/_internal/dartdoc/lib/src/dartdoc/utils.dart

Issue 11664006: Make Map.keys/values Iterables. (Closed) Base URL: https://dart.googlecode.com/svn/experimental/lib_v2/dart
Patch Set: Add TODO that map.keys should return a Set. Created 7 years, 12 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: sdk/lib/_internal/dartdoc/lib/src/dartdoc/utils.dart
diff --git a/sdk/lib/_internal/dartdoc/lib/src/dartdoc/utils.dart b/sdk/lib/_internal/dartdoc/lib/src/dartdoc/utils.dart
index cb52f96d6c5bb1d68f55d444754f2a465f509c26..79a9aa64dfcaba0a2e6569477854b6bd132accc1 100644
--- a/sdk/lib/_internal/dartdoc/lib/src/dartdoc/utils.dart
+++ b/sdk/lib/_internal/dartdoc/lib/src/dartdoc/utils.dart
@@ -49,7 +49,7 @@ String unindent(String text, int indentation) {
}
/** Sorts the map by the key, doing a case-insensitive comparison. */
-List<Mirror> orderByName(Collection<Mirror> list) {
+List<Mirror> orderByName(Iterable<Mirror> list) {
final elements = new List<Mirror>.from(list);
elements.sort((a,b) {
String aName = a.simpleName.toLowerCase();

Powered by Google App Engine
This is Rietveld 408576698