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

Unified Diff: runtime/lib/array.dart

Issue 15263004: Adding isNotEmpty property to collection and string. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix template generation Created 7 years, 7 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 | « pkg/yaml/lib/src/yaml_map.dart ('k') | runtime/lib/collection_patch.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/array.dart
diff --git a/runtime/lib/array.dart b/runtime/lib/array.dart
index b26f098735b496b6531e2bbcbbe0ef6061bb1f31..cfb640bc01c076d959d31a7d88458025a50cf313 100644
--- a/runtime/lib/array.dart
+++ b/runtime/lib/array.dart
@@ -194,6 +194,8 @@ class _ObjectArray<E> implements List<E> {
return this.length == 0;
}
+ bool get isNotEmpty => !isEmpty;
+
Iterable<E> get reversed => IterableMixinWorkaround.reversedList(this);
void sort([int compare(E a, E b)]) {
@@ -445,6 +447,8 @@ class _ImmutableArray<E> implements List<E> {
return this.length == 0;
}
+ bool get isNotEmpty => !isEmpty;
+
Iterable<E> get reversed => IterableMixinWorkaround.reversedList(this);
void sort([int compare(E a, E b)]) {
« no previous file with comments | « pkg/yaml/lib/src/yaml_map.dart ('k') | runtime/lib/collection_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698