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

Unified Diff: sdk/lib/_internal/compiler/implementation/lib/js_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
Index: sdk/lib/_internal/compiler/implementation/lib/js_array.dart
diff --git a/sdk/lib/_internal/compiler/implementation/lib/js_array.dart b/sdk/lib/_internal/compiler/implementation/lib/js_array.dart
index 30e0a39ce3aa9c88bb9cd20ffd894ab7ab95be0a..6852ee931d2c95cfc6c77d17aee0aa8d5c0d2015 100644
--- a/sdk/lib/_internal/compiler/implementation/lib/js_array.dart
+++ b/sdk/lib/_internal/compiler/implementation/lib/js_array.dart
@@ -247,6 +247,8 @@ class JSArray<E> extends Interceptor implements List<E>, JSIndexable {
bool get isEmpty => length == 0;
+ bool get isNotEmpty => !isEmpty;
+
String toString() => ToString.iterableToString(this);
List<E> toList({ bool growable: true }) =>

Powered by Google App Engine
This is Rietveld 408576698