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

Unified Diff: utils/pub/package.dart

Issue 11191078: Make hashCode a getter and not a method. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update status file with co19 issue number. Created 8 years, 2 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: utils/pub/package.dart
diff --git a/utils/pub/package.dart b/utils/pub/package.dart
index ffc754b15d7507f4c7f189be5edcb19c4f6b0157..00eaf842fef7f15947f318d5520dabd073b84c41 100644
--- a/utils/pub/package.dart
+++ b/utils/pub/package.dart
@@ -118,9 +118,9 @@ class PackageId implements Comparable {
PackageId(this.name, this.source, this.version, this.description);
- int hashCode() => name.hashCode() ^
- source.name.hashCode() ^
- version.hashCode();
+ int get hashCode => name.hashCode ^
+ source.name.hashCode ^
+ version.hashCode;
bool operator ==(other) {
if (other is! PackageId) return false;

Powered by Google App Engine
This is Rietveld 408576698