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

Unified Diff: runtime/bin/buffer_list.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 | « pkg/unittest/core_matchers.dart ('k') | runtime/bin/common.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/buffer_list.dart
diff --git a/runtime/bin/buffer_list.dart b/runtime/bin/buffer_list.dart
index fd58ee2c95db3b502e5864f95891e82c7c01ab13..c8e98e908252a7e220474611ba1a80c7325b709b 100644
--- a/runtime/bin/buffer_list.dart
+++ b/runtime/bin/buffer_list.dart
@@ -17,7 +17,7 @@ class _BufferList {
* buffer list is empty.
*/
void add(List<int> buffer, [int offset = 0]) {
- assert(offset == 0 || _buffers.isEmpty());
+ assert(offset == 0 || _buffers.isEmpty);
_buffers.addLast(buffer);
_length += buffer.length;
if (offset != 0) _index = offset;
@@ -135,7 +135,7 @@ class _BufferList {
* Returns whether the buffer list is empty that is has no bytes
* available.
*/
- bool isEmpty() => _buffers.isEmpty();
+ bool get isEmpty => _buffers.isEmpty;
/**
* Clears the content of the buffer list.
« no previous file with comments | « pkg/unittest/core_matchers.dart ('k') | runtime/bin/common.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698