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

Unified Diff: client/dom/scripts/dartgenerator.py

Issue 9114026: Add map to dart:dom collections. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: x Created 8 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: client/dom/scripts/dartgenerator.py
diff --git a/client/dom/scripts/dartgenerator.py b/client/dom/scripts/dartgenerator.py
index b0711cfe5102d0e5a083663dc6fb2923f402c4ac..25ee28ab4dc62276eafac444a28f88e741042a1d 100755
--- a/client/dom/scripts/dartgenerator.py
+++ b/client/dom/scripts/dartgenerator.py
@@ -1507,6 +1507,10 @@ class WrappingInterfaceGenerator(object):
' _Collections.forEach(this, f);\n'
' }\n'
'\n'
+ ' Collection map(f($TYPE element)) {\n'
+ ' return _Collections.map(this, [], f);\n'
+ ' }\n'
+ '\n'
' Collection<$TYPE> filter(bool f($TYPE element)) {\n'
' return _Collections.filter(this, new List<$TYPE>(), f);\n'
' }\n'
« no previous file with comments | « client/dom/generated/src/wrapping/_Uint8ArrayWrappingImplementation.dart ('k') | client/dom/src/_Collections.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698