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

Unified Diff: lib/compiler/implementation/closure.dart

Issue 11267018: Make getKeys, getValues getters (keys, values). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update status files with co19 issue number. Created 8 years, 2 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: lib/compiler/implementation/closure.dart
diff --git a/lib/compiler/implementation/closure.dart b/lib/compiler/implementation/closure.dart
index 9f5e2092f128efa666f15096b241c02458fc5462..23d5e9e8441c657b27e69be71a155a975f42ab94 100644
--- a/lib/compiler/implementation/closure.dart
+++ b/lib/compiler/implementation/closure.dart
@@ -231,7 +231,7 @@ class ClosureTranslator extends Visitor {
Map<Element, Element> freeVariableMapping = data.freeVariableMapping;
// We get a copy of the keys and iterate over it, to avoid modifications
// to the map while iterating over it.
- freeVariableMapping.getKeys().forEach((Element fromElement) {
+ freeVariableMapping.keys.forEach((Element fromElement) {
assert(fromElement == freeVariableMapping[fromElement]);
Element updatedElement = capturedVariableMapping[fromElement];
assert(updatedElement != null);
@@ -586,7 +586,7 @@ class ClosureTranslator extends Visitor {
// Mark all free variables as captured and use them in the outer function.
List<Element> freeVariables =
- savedClosureData.freeVariableMapping.getKeys();
+ savedClosureData.freeVariableMapping.keys;
assert(freeVariables.isEmpty || savedInsideClosure);
for (Element freeElement in freeVariables) {
if (capturedVariableMapping[freeElement] != null &&

Powered by Google App Engine
This is Rietveld 408576698