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

Unified Diff: sdk/lib/_internal/compiler/implementation/dart_backend/backend.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/compiler/implementation/dart_backend/backend.dart
diff --git a/sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart b/sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart
index f77dad05b97d8165da082857076557a88a3c9d29..5fd489d4a9d5ca045b068d207ba1bbbd6e5c0ca9 100644
--- a/sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart
+++ b/sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart
@@ -210,7 +210,7 @@ class DartBackend extends Backend {
}
void codegen(WorkItem work) { }
void processNativeClasses(Enqueuer world,
- Collection<LibraryElement> libraries) { }
+ Iterable<LibraryElement> libraries) { }
bool isUserLibrary(LibraryElement lib) {
final INTERNAL_HELPERS = [
@@ -561,5 +561,5 @@ compareElements(e0, e1) {
return compareBy((e) => e.position().charOffset)(e0, e1);
}
-List<Element> sortElements(Collection<Element> elements) =>
+List<Element> sortElements(Iterable<Element> elements) =>
sorted(elements, compareElements);

Powered by Google App Engine
This is Rietveld 408576698