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

Unified Diff: sdk/lib/_internal/compiler/implementation/dart_backend/backend.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/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 4735b7b93f27be852286d6b743c6b199f64e70d3..5fd489d4a9d5ca045b068d207ba1bbbd6e5c0ca9 100644
--- a/sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart
+++ b/sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart
@@ -137,7 +137,7 @@ class DartBackend extends Backend {
Set<DartType> processedTypes = new Set<DartType>();
List<DartType> workQueue = new List<DartType>();
workQueue.addAll(
- classMembers.keys.map((classElement) => classElement.thisType));
+ classMembers.keys.mappedBy((classElement) => classElement.thisType));
workQueue.addAll(compiler.resolverWorld.isChecks);
Element typeErrorElement =
compiler.coreLibrary.find(new SourceString('TypeError'));
@@ -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 = [
@@ -451,8 +451,8 @@ class DartBackend extends Backend {
}
void logResultBundleSizeInfo(Set<Element> topLevelElements) {
- Collection<LibraryElement> referencedLibraries =
- compiler.libraries.values.filter(isUserLibrary);
+ Iterable<LibraryElement> referencedLibraries =
+ compiler.libraries.values.where(isUserLibrary);
// Sum total size of scripts in each referenced library.
int nonPlatformSize = 0;
for (LibraryElement lib in referencedLibraries) {
@@ -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