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

Unified Diff: utils/pub/yaml/yaml_map.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
« tests/co19/co19-dart2js.status ('K') | « utils/pub/yaml/model.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/yaml/yaml_map.dart
diff --git a/utils/pub/yaml/yaml_map.dart b/utils/pub/yaml/yaml_map.dart
index f5b857f5904235ef65b18a448dab66d64bd5c506..b4e9092e784857974233724e4170f17db3cb8d28 100644
--- a/utils/pub/yaml/yaml_map.dart
+++ b/utils/pub/yaml/yaml_map.dart
@@ -35,7 +35,7 @@ class YamlMap implements Map {
bool isEmpty() => _map.isEmpty();
String toString() => _map.toString();
- int hashCode() => _hashCode(_map);
+ int get hashCode => _hashCode(_map);
bool operator ==(other) {
if (other is! YamlMap) return false;
@@ -67,7 +67,7 @@ class _WrappedHashKey {
_WrappedHashKey(this.value);
- int hashCode() => _hashCode(value);
+ int get hashCode => _hashCode(value);
String toString() => value.toString();
@@ -107,7 +107,7 @@ int _hashCode(obj, [List parents]) {
}
return hash;
}
- return obj.hashCode();
+ return obj.hashCode;
} finally {
parents.removeLast();
}
« tests/co19/co19-dart2js.status ('K') | « utils/pub/yaml/model.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698