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

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: 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/warnings.dart
diff --git a/dart/sdk/lib/_internal/compiler/implementation/warnings.dart b/dart/sdk/lib/_internal/compiler/implementation/warnings.dart
index 506b5e157519593ddc7c7d9ad578a2f22ab4ee1e..ee729644865336bec561b718a92816140b30f859 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