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

Side by Side Diff: runtime/bin/socket_impl.dart

Issue 11191078: Make hashCode a getter and not a method. (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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 5
6 class _SocketBase extends NativeFieldWrapperClass1 { 6 class _SocketBase extends NativeFieldWrapperClass1 {
7 // Bit flags used when communicating between the eventhandler and 7 // Bit flags used when communicating between the eventhandler and
8 // dart code. The EVENT flags are used to indicate events of 8 // dart code. The EVENT flags are used to indicate events of
9 // interest when sending a message from dart code to the 9 // interest when sending a message from dart code to the
10 // eventhandler. When receiving a message from the eventhandler the 10 // eventhandler. When receiving a message from the eventhandler the
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 break; 216 break;
217 default: 217 default:
218 doReportError(new Exception("Unknown error")); 218 doReportError(new Exception("Unknown error"));
219 break; 219 break;
220 } 220 }
221 } else { 221 } else {
222 doReportError(new SocketIOException(message)); 222 doReportError(new SocketIOException(message));
223 } 223 }
224 } 224 }
225 225
226 int hashCode() => _hashCode; 226 int get hashCode => _hashCode;
227 227
228 bool _propagateError(Exception e) => false; 228 bool _propagateError(Exception e) => false;
229 229
230 abstract bool _isListenSocket(); 230 abstract bool _isListenSocket();
231 abstract bool _isPipe(); 231 abstract bool _isPipe();
232 232
233 // Is this socket closed. 233 // Is this socket closed.
234 bool _closed; 234 bool _closed;
235 235
236 // Dedicated ReceivePort for socket events. 236 // Dedicated ReceivePort for socket events.
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
573 bool _seenFirstOutEvent = false; 573 bool _seenFirstOutEvent = false;
574 bool _pipe = false; 574 bool _pipe = false;
575 Function _clientConnectHandler; 575 Function _clientConnectHandler;
576 Function _clientWriteHandler; 576 Function _clientWriteHandler;
577 SocketInputStream _inputStream; 577 SocketInputStream _inputStream;
578 SocketOutputStream _outputStream; 578 SocketOutputStream _outputStream;
579 String _remoteHost; 579 String _remoteHost;
580 int _remotePort; 580 int _remotePort;
581 static SendPort _socketService; 581 static SendPort _socketService;
582 } 582 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698