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

Unified Diff: lib/html/templates/immutable_list_mixin.darttemplate

Issue 11169004: Add "contains" method to Collection. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixed last illegal-access 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
« no previous file with comments | « lib/html/templates/html/impl/impl_NodeList.darttemplate ('k') | runtime/lib/array.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/html/templates/immutable_list_mixin.darttemplate
diff --git a/lib/html/templates/immutable_list_mixin.darttemplate b/lib/html/templates/immutable_list_mixin.darttemplate
index ee45407aa0d2946acb947f411e6b12bcbbe6b224..1e6ebb5c112f3e0634fb4c23263b9b7896d72b95 100644
--- a/lib/html/templates/immutable_list_mixin.darttemplate
+++ b/lib/html/templates/immutable_list_mixin.darttemplate
@@ -24,6 +24,8 @@
throw const UnsupportedOperationException("Cannot add to immutable List.");
}
+ bool contains($E element) => _Collections.contains(this, element);
+
void forEach(void f($E element)) => _Collections.forEach(this, f);
Collection map(f($E element)) => _Collections.map(this, [], f);
« no previous file with comments | « lib/html/templates/html/impl/impl_NodeList.darttemplate ('k') | runtime/lib/array.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698