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

Unified Diff: pkg/observe/lib/src/observable_map.dart

Issue 26967004: add @MirrorsUsed to observe/polymer/polymer_exprs pkgs (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fix typo in comment 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
Index: pkg/observe/lib/src/observable_map.dart
diff --git a/pkg/observe/lib/src/observable_map.dart b/pkg/observe/lib/src/observable_map.dart
index 5f952ec7c62f370159add86329248092f815b088..da8b6141f45c020461b8b2fdad7077425ec1fb04 100644
--- a/pkg/observe/lib/src/observable_map.dart
+++ b/pkg/observe/lib/src/observable_map.dart
@@ -80,23 +80,23 @@ class ObservableMap<K, V> extends ChangeNotifierBase implements Map<K, V> {
return result;
}
- Iterable<K> get keys => _map.keys;
+ @reflectable Iterable<K> get keys => _map.keys;
- Iterable<V> get values => _map.values;
+ @reflectable Iterable<V> get values => _map.values;
- int get length =>_map.length;
+ @reflectable int get length =>_map.length;
- bool get isEmpty => length == 0;
+ @reflectable bool get isEmpty => length == 0;
- bool get isNotEmpty => !isEmpty;
+ @reflectable bool get isNotEmpty => !isEmpty;
- bool containsValue(Object value) => _map.containsValue(value);
+ @reflectable bool containsValue(Object value) => _map.containsValue(value);
- bool containsKey(Object key) => _map.containsKey(key);
+ @reflectable bool containsKey(Object key) => _map.containsKey(key);
- V operator [](Object key) => _map[key];
+ @reflectable V operator [](Object key) => _map[key];
- void operator []=(K key, V value) {
+ @reflectable void operator []=(K key, V value) {
int len = _map.length;
V oldValue = _map[key];
_map[key] = value;

Powered by Google App Engine
This is Rietveld 408576698