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

Unified Diff: dart/sdk/lib/_internal/compiler/implementation/util/link.dart

Issue 17569004: Implement hashCode on objects stored in a set or used as map keys. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Merged with TOT Created 7 years, 6 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: dart/sdk/lib/_internal/compiler/implementation/util/link.dart
diff --git a/dart/sdk/lib/_internal/compiler/implementation/util/link.dart b/dart/sdk/lib/_internal/compiler/implementation/util/link.dart
index f46af2dccdaabbcd7eb12dc29ff0442b0781141f..114d3bf32ae8547c550c6401f05d98eccf128efc 100644
--- a/dart/sdk/lib/_internal/compiler/implementation/util/link.dart
+++ b/dart/sdk/lib/_internal/compiler/implementation/util/link.dart
@@ -74,6 +74,8 @@ class Link<T> {
return other.isEmpty;
}
+ int get hashCode => throw new UnsupportedError('Link.hashCode');
+
String toString() => "[]";
get length {

Powered by Google App Engine
This is Rietveld 408576698