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

Unified Diff: runtime/lib/null_patch.dart

Issue 2563633002: Make the VM's dart:core and dart:async library patches clean. (Closed)
Patch Set: Created 4 years 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: runtime/lib/null_patch.dart
diff --git a/runtime/lib/null_patch.dart b/runtime/lib/null_patch.dart
index 0f22e67e5679cee1de70115a6f6426f50d87f68e..eb5db12e53cb17acc635b7ce5f467ce34faf9855 100644
--- a/runtime/lib/null_patch.dart
+++ b/runtime/lib/null_patch.dart
@@ -6,6 +6,9 @@
@patch class Null {
static const _HASH_CODE = 2011; // The year Dart was announced and a prime.
+
+ @patch
int get hashCode => _HASH_CODE;
+
int get _identityHashCode => _HASH_CODE;
}

Powered by Google App Engine
This is Rietveld 408576698