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

Unified Diff: test/generated_sdk/lib/core/identical.dart

Issue 959913003: cleanup patch generation to preseve comments and remove @patch (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 10 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 | « test/generated_sdk/lib/core/function.dart ('k') | test/generated_sdk/lib/core/int.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/generated_sdk/lib/core/identical.dart
diff --git a/test/generated_sdk/lib/core/identical.dart b/test/generated_sdk/lib/core/identical.dart
index 4af6d577d8236910d7247a8ebcf3394ebf7c3f90..58543749bd7aed652be64ce2e168cbbfa52a20dd 100644
--- a/test/generated_sdk/lib/core/identical.dart
+++ b/test/generated_sdk/lib/core/identical.dart
@@ -4,10 +4,20 @@
part of dart.core;
-@patch
+/**
+ * Check whether two references are to the same object.
+ */
bool identical(Object a, Object b) {
return Primitives.identicalImplementation(a, b);
}
-@patch
+/**
+ * Returns the identity hash code of `object`.
+ *
+ * Returns the same value as `object.hashCode` if [object] has not overridden
+ * [Object.hashCode]. Returns the value that [Object.hashCode] would return
+ * on this object, even if `hashCode` has been overridden.
+ *
+ * This hash code is compatible with [identical].
+ */
int identityHashCode(Object object) => objectHashCode(object);
« no previous file with comments | « test/generated_sdk/lib/core/function.dart ('k') | test/generated_sdk/lib/core/int.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698