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

Unified Diff: runtime/bin/socket_stream_impl.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 | « runtime/bin/socket.dart ('k') | runtime/bin/string_stream.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/socket_stream_impl.dart
diff --git a/runtime/bin/socket_stream_impl.dart b/runtime/bin/socket_stream_impl.dart
index a2bbf9965dc01e0139719b963d666242035c5fc2..c0ad2217d688d8f732437d5d07da8c5a2162fff2 100644
--- a/runtime/bin/socket_stream_impl.dart
+++ b/runtime/bin/socket_stream_impl.dart
@@ -114,7 +114,7 @@ class _SocketOutputStream
void close() {
if (_closing && _closed) return;
- if (!_pendingWrites.isEmpty()) {
+ if (!_pendingWrites.isEmpty) {
// Mark the socket for close when all data is written.
_closing = true;
_socket._onWrite = _onWrite;
@@ -152,7 +152,7 @@ class _SocketOutputStream
bool _write(List<int> buffer, int offset, int len, bool copyBuffer) {
if (_closing || _closed) throw new StreamException("Stream closed");
int bytesWritten = 0;
- if (_pendingWrites.isEmpty()) {
+ if (_pendingWrites.isEmpty) {
// If nothing is buffered write as much as possible and buffer
// the rest.
bytesWritten = _socket.writeList(buffer, offset, len);
@@ -175,7 +175,7 @@ class _SocketOutputStream
void _onWrite() {
// Write as much buffered data to the socket as possible.
- while (!_pendingWrites.isEmpty()) {
+ while (!_pendingWrites.isEmpty) {
List<int> buffer = _pendingWrites.first;
int offset = _pendingWrites.index;
int bytesToWrite = buffer.length - offset;
« no previous file with comments | « runtime/bin/socket.dart ('k') | runtime/bin/string_stream.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698