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

Unified Diff: dart/sdk/lib/_internal/compiler/implementation/util/link_implementation.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_implementation.dart
diff --git a/dart/sdk/lib/_internal/compiler/implementation/util/link_implementation.dart b/dart/sdk/lib/_internal/compiler/implementation/util/link_implementation.dart
index 6743738f2a0fce19217915bd829a77b0795ee97e..1f85236f8ba4a6186176fd4200aaf54459e0fd01 100644
--- a/dart/sdk/lib/_internal/compiler/implementation/util/link_implementation.dart
+++ b/dart/sdk/lib/_internal/compiler/implementation/util/link_implementation.dart
@@ -100,6 +100,8 @@ class LinkEntry<T> extends Link<T> {
return myElements.isEmpty && other.isEmpty;
}
+ int get hashCode => throw new UnsupportedError('LinkEntry.hashCode');
+
int slowLength() => 1 + tail.slowLength();
}

Powered by Google App Engine
This is Rietveld 408576698