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

Unified Diff: lib/core/string_buffer.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.dart ('k') | lib/coreimpl/hash_map_set.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/core/string_buffer.dart
diff --git a/lib/core/string_buffer.dart b/lib/core/string_buffer.dart
index d56b3a3c7ffd2622595d95046da4979fa03cc144..7530cdb8daba47bea6c48aefba43d14703b380b5 100644
--- a/lib/core/string_buffer.dart
+++ b/lib/core/string_buffer.dart
@@ -22,7 +22,7 @@ abstract class StringBuffer {
/**
* Returns whether the buffer is empty.
*/
- bool isEmpty();
+ bool get isEmpty;
/**
* Converts [obj] to a string and adds it to the buffer. Returns [:this:].
@@ -67,7 +67,7 @@ class _StringBufferImpl implements StringBuffer {
return _length;
}
- bool isEmpty() {
+ bool get isEmpty {
return _length === 0;
}
@@ -76,7 +76,7 @@ class _StringBufferImpl implements StringBuffer {
*/
StringBuffer add(Object obj) {
String str = obj.toString();
- if (str === null || str.isEmpty()) {
+ if (str === null || str.isEmpty) {
return this;
}
_buffer.add(str);
« no previous file with comments | « lib/core/string.dart ('k') | lib/coreimpl/hash_map_set.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698