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

Unified Diff: lib/observe/set.dart

Issue 49223002: fix webui for sdk 0.8.7 (Closed) Base URL: git@github.com:dart-lang/web-ui.git@master
Patch Set: Created 7 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/observe/observable.dart ('k') | lib/src/compiler.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/observe/set.dart
diff --git a/lib/observe/set.dart b/lib/observe/set.dart
index 1618aed4a2dcb20cb3901a65102744f26b831761..b1be62fb3163102765307502bcc0b09d0987b340 100644
--- a/lib/observe/set.dart
+++ b/lib/observe/set.dart
@@ -53,13 +53,15 @@ class ObservableSet<E> extends IterableWorkaround with Observable
* Adds [value] into the set. The method has no effect if
* [value] was already in the set.
*/
- void add(E value) {
+ bool add(E value) {
int len = _map.length;
_map[value] = const Object();
if (len != _map.length) {
notifyChange(this, ChangeRecord.FIELD, 'length', len, _map.length);
notifyChange(this, ChangeRecord.INSERT, value, null, value);
+ return true;
}
+ return false;
}
/**
@@ -110,6 +112,8 @@ class ObservableSet<E> extends IterableWorkaround with Observable
*/
void addAll(Iterable<E> collection) => collection.forEach(add);
+ E lookup(Object object) { throw new UnimplementedError(); }
+
/**
* Removes all the elements of the given collection from the set.
*/
« no previous file with comments | « lib/observe/observable.dart ('k') | lib/src/compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698