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

Unified Diff: tools/dom/src/CssClassSet.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
« no previous file with comments | « tools/dom/src/AttributeMap.dart ('k') | tools/dom/src/Isolates.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/src/CssClassSet.dart
diff --git a/tools/dom/src/CssClassSet.dart b/tools/dom/src/CssClassSet.dart
index 7acc4e54aaf7c02c2066f70665da56ac92ea3042..ccb6d90ee1a6aedb3d848b4c83f2e82b246e5658 100644
--- a/tools/dom/src/CssClassSet.dart
+++ b/tools/dom/src/CssClassSet.dart
@@ -34,7 +34,7 @@ abstract class CssClassSet implements Set<String> {
bool get frozen => false;
// interface Iterable - BEGIN
- Iterator<String> iterator() => readClasses().iterator();
+ Iterator<String> get iterator => readClasses().iterator;
// interface Iterable - END
// interface Collection - BEGIN
@@ -42,13 +42,15 @@ abstract class CssClassSet implements Set<String> {
readClasses().forEach(f);
}
- Collection map(f(String element)) => readClasses().map(f);
+ String join([String separator]) => readClasses().join(separator);
- Collection<String> filter(bool f(String element)) => readClasses().filter(f);
+ Iterable mappedBy(f(String element)) => readClasses().mappedBy(f);
+
+ Iterable<String> where(bool f(String element)) => readClasses().where(f);
bool every(bool f(String element)) => readClasses().every(f);
- bool some(bool f(String element)) => readClasses().some(f);
+ bool any(bool f(String element)) => readClasses().any(f);
bool get isEmpty => readClasses().isEmpty;
@@ -76,13 +78,13 @@ abstract class CssClassSet implements Set<String> {
return result;
}
- void addAll(Collection<String> collection) {
+ void addAll(Iterable<String> iterable) {
// TODO - see comment above about validation
- _modify((s) => s.addAll(collection));
+ _modify((s) => s.addAll(iterable));
}
- void removeAll(Collection<String> collection) {
- _modify((s) => s.removeAll(collection));
+ void removeAll(Iterable<String> iterable) {
+ _modify((s) => s.removeAll(iterable));
}
bool isSubsetOf(Collection<String> collection) =>
« no previous file with comments | « tools/dom/src/AttributeMap.dart ('k') | tools/dom/src/Isolates.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698