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

Unified Diff: sdk/lib/_internal/compiler/implementation/elements/elements.dart

Issue 11783009: Big merge from experimental to bleeding edge. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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/compiler/implementation/elements/elements.dart
diff --git a/sdk/lib/_internal/compiler/implementation/elements/elements.dart b/sdk/lib/_internal/compiler/implementation/elements/elements.dart
index 360800b8b5b7a295e72062e9d88d6c592e05630f..ebeb5cd936fe688bc24cb515ff3d1aa28b950ede 100644
--- a/sdk/lib/_internal/compiler/implementation/elements/elements.dart
+++ b/sdk/lib/_internal/compiler/implementation/elements/elements.dart
@@ -2040,8 +2040,8 @@ class Elements {
return a.hashCode.compareTo(b.hashCode);
}
- static List<Element> sortedByPosition(Collection<Element> elements) {
- return new List<Element>.from(elements)..sort(compareByPosition);
+ static List<Element> sortedByPosition(Iterable<Element> elements) {
+ return elements.toList()..sort(compareByPosition);
}
}

Powered by Google App Engine
This is Rietveld 408576698