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

Unified Diff: dart/sdk/lib/_internal/compiler/implementation/warnings.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: Rebased on CL 17588005. 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/warnings.dart
diff --git a/dart/sdk/lib/_internal/compiler/implementation/warnings.dart b/dart/sdk/lib/_internal/compiler/implementation/warnings.dart
index 9368f89b78795300d2c5a32589128409d46e88c7..ea9e56bbc292acd29f88676f1e2e2f5a6dfe9bd0 100644
--- a/dart/sdk/lib/_internal/compiler/implementation/warnings.dart
+++ b/dart/sdk/lib/_internal/compiler/implementation/warnings.dart
@@ -600,6 +600,8 @@ class Message {
return (kind == other.kind) && (toString() == other.toString());
}
+ int get hashCode => throw new UnsupportedError('Message.hashCode');
+
String slowToString(object) {
if (object is SourceString) {
return object.slowToString();

Powered by Google App Engine
This is Rietveld 408576698