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

Unified Diff: sdk/lib/html/dart2js/html_dart2js.dart

Issue 18034021: Fixing analyzer warnings on overloading == but not get hashCode. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/html/dart2js/html_dart2js.dart
diff --git a/sdk/lib/html/dart2js/html_dart2js.dart b/sdk/lib/html/dart2js/html_dart2js.dart
index cbcbe5a87517db15e6b96df39415e39e36a1ae92..102d4da2c215a29cbe2fb92f330f1c3acbb19079 100644
--- a/sdk/lib/html/dart2js/html_dart2js.dart
+++ b/sdk/lib/html/dart2js/html_dart2js.dart
@@ -24508,6 +24508,9 @@ class _ClientRect implements Rect native "ClientRect" {
height == other.height;
}
+ int get hashCode => JenkinsSmiHash.hash4(left.hashCode, top.hashCode,
+ width.hashCode, height.hashCode);
+
/**
* Computes the intersection of this rectangle and the rectangle parameter.
* Returns null if there is no intersection.
@@ -27611,6 +27614,8 @@ class Point {
return x == other.x && y == other.y;
}
+ int get hashCode => JenkinsSmiHash.hash2(x.hashCode, y.hashCode);
+
Point operator +(Point other) {
return new Point(x + other.x, y + other.y);
}
@@ -27733,6 +27738,9 @@ class Rect {
height == other.height;
}
+ int get hashCode => JenkinsSmiHash.hash4(left.hashCode, top.hashCode,
+ width.hashCode, height.hashCode);
+
/**
* Computes the intersection of this rectangle and the rectangle parameter.
* Returns null if there is no intersection.
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698