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

Unified Diff: sdk/lib/_internal/compiler/implementation/lib/constant_map.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/constant_map.dart
diff --git a/sdk/lib/_internal/compiler/implementation/lib/constant_map.dart b/sdk/lib/_internal/compiler/implementation/lib/constant_map.dart
index d84b4a574435c1d6270a9d2adf547e1c87d7928f..1647f32c9e534a747b743947b230aadb307d26dc 100644
--- a/sdk/lib/_internal/compiler/implementation/lib/constant_map.dart
+++ b/sdk/lib/_internal/compiler/implementation/lib/constant_map.dart
@@ -40,6 +40,8 @@ class ConstantMap<V> implements Map<String, V> {
bool get isEmpty => length == 0;
+ bool get isNotEmpty => !isEmpty;
+
String toString() => Maps.mapToString(this);
_throwUnmodifiable() {

Powered by Google App Engine
This is Rietveld 408576698