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

Unified Diff: dart/sdk/lib/_internal/compiler/implementation/tree/dartstring.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/tree/dartstring.dart
diff --git a/dart/sdk/lib/_internal/compiler/implementation/tree/dartstring.dart b/dart/sdk/lib/_internal/compiler/implementation/tree/dartstring.dart
index 8f962adbb6bfdd1e3d4d7b034e6b6d014cf3fad5..b25871c5e9958fa50650fb5e54448e2dcd8f43d6 100644
--- a/dart/sdk/lib/_internal/compiler/implementation/tree/dartstring.dart
+++ b/dart/sdk/lib/_internal/compiler/implementation/tree/dartstring.dart
@@ -43,6 +43,9 @@ abstract class DartString extends IterableBase<int> {
}
return true;
}
+
+ int get hashCode => throw new UnsupportedError('ArgumentsTypes.hashCode');
ngeoffray 2013/06/24 19:43:10 ArgumentsTypes => DartString.
ahe 2013/06/24 20:43:50 Done.
+
String toString() => "DartString#${length}:${slowToString()}";
SourceString get source;
}

Powered by Google App Engine
This is Rietveld 408576698