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

Unified Diff: lib/compiler/implementation/tree/nodes.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: lib/compiler/implementation/tree/nodes.dart
diff --git a/lib/compiler/implementation/tree/nodes.dart b/lib/compiler/implementation/tree/nodes.dart
index 0024c59497c6113e94f0a2047e68e294045c2e66..7fd2c450df30241d196f675f0e44e89f0a12401e 100644
--- a/lib/compiler/implementation/tree/nodes.dart
+++ b/lib/compiler/implementation/tree/nodes.dart
@@ -109,12 +109,10 @@ class NodeAssertionFailure implements Exception {
* "Token".
*/
abstract class Node implements Spannable {
- final int _hashCode;
+ final int hashCode;
static int _HASH_COUNTER = 0;
- Node() : _hashCode = ++_HASH_COUNTER;
-
- hashCode() => _hashCode;
+ Node() : hashCode = ++_HASH_COUNTER;
abstract accept(Visitor visitor);

Powered by Google App Engine
This is Rietveld 408576698