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

Unified Diff: lib/coreimpl/hash_map_set.dart

Issue 11238035: Make isEmpty a getter. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update status file with co19 issue number. 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/core/string_buffer.dart ('k') | lib/coreimpl/linked_hash_map.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/coreimpl/hash_map_set.dart
diff --git a/lib/coreimpl/hash_map_set.dart b/lib/coreimpl/hash_map_set.dart
index 897fcc66100cc9e6ec5818269381b146a46cd72c..fe4a671557407e0ba049aea891f5f2522b34c4fa 100644
--- a/lib/coreimpl/hash_map_set.dart
+++ b/lib/coreimpl/hash_map_set.dart
@@ -219,7 +219,7 @@ class HashMapImplementation<K, V> implements HashMap<K, V> {
return null;
}
- bool isEmpty() {
+ bool get isEmpty {
return _numberOfEntries == 0;
}
@@ -375,8 +375,8 @@ class HashSetImplementation<E > implements HashSet<E> {
return keys.some(f);
}
- bool isEmpty() {
- return _backingMap.isEmpty();
+ bool get isEmpty {
+ return _backingMap.isEmpty;
}
int get length {
« no previous file with comments | « lib/core/string_buffer.dart ('k') | lib/coreimpl/linked_hash_map.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698