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

Unified Diff: sdk/lib/_internal/compiler/implementation/lib/js_helper.dart

Issue 11308091: Add TypeImpl.hashCode. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Moved the test to dart2js_extra. Created 8 years, 1 month 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: sdk/lib/_internal/compiler/implementation/lib/js_helper.dart
diff --git a/sdk/lib/_internal/compiler/implementation/lib/js_helper.dart b/sdk/lib/_internal/compiler/implementation/lib/js_helper.dart
index 8e9dbb1d3049b63bb4315684e785c763713ae8c1..7f3e2e111601712192b5b089e0d4e72575482d1e 100644
--- a/sdk/lib/_internal/compiler/implementation/lib/js_helper.dart
+++ b/sdk/lib/_internal/compiler/implementation/lib/js_helper.dart
@@ -1486,6 +1486,7 @@ class TypeImpl implements Type {
final String typeName;
TypeImpl(this.typeName);
toString() => typeName;
+ int get hashCode => typeName.hashCode;
bool operator ==(other) {
if (other is !TypeImpl) return false;
return typeName == other.typeName;

Powered by Google App Engine
This is Rietveld 408576698