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

Unified Diff: runtime/bin/websocket_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 side-by-side diff with in-line comments
Download patch
Index: runtime/bin/websocket_impl.dart
diff --git a/runtime/bin/websocket_impl.dart b/runtime/bin/websocket_impl.dart
index 54c66eb9123c79db6c3e9c9bc8ba2cf2e58414d4..f3ccac957e3e8d457827c277a8d02644c6a7f620 100644
--- a/runtime/bin/websocket_impl.dart
+++ b/runtime/bin/websocket_impl.dart
@@ -468,7 +468,7 @@ class _WebSocketConnectionBase {
_closeSent = true;
}
- int hashCode() => _hash;
+ int get hashCode => _hash;
_onWebSocketMessageStart(int type) {
_currentMessageType = type;
@@ -576,7 +576,7 @@ class _WebSocketConnectionBase {
class _WebSocketConnection
extends _WebSocketConnectionBase implements WebSocketConnection {
_WebSocketConnection(DetachedSocket detached) {
- _hash = detached.socket.hashCode();
+ _hash = detached.socket.hashCode;
_socketConnected(detached.socket);
_startProcessing(detached.unparsedData);
}

Powered by Google App Engine
This is Rietveld 408576698