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

Unified Diff: test/generated_sdk/lib/core/object.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/list.dart ('k') | test/generated_sdk/lib/core/regexp.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/generated_sdk/lib/core/object.dart
diff --git a/test/generated_sdk/lib/core/object.dart b/test/generated_sdk/lib/core/object.dart
index f9a56bff62dca2264ca1bfa4b90b3c96120eda3c..2140705a664fa3397fd7577f671d8b795318acd2 100644
--- a/test/generated_sdk/lib/core/object.dart
+++ b/test/generated_sdk/lib/core/object.dart
@@ -58,13 +58,35 @@ class Object {
*/
bool operator ==(other) => identical(this, other);
- @patch
+ /**
+ * Get a hash code for this object.
+ *
+ * All objects have hash codes. Hash codes are guaranteed to be the
+ * same for objects that are equal when compared using the equality
+ * operator [:==:]. Other than that there are no guarantees about
+ * the hash codes. They will not be consistent between runs and
+ * there are no distribution guarantees.
+ *
+ * If a subclass overrides [hashCode] it should override the
+ * equality operator as well to maintain consistency.
+ */
int get hashCode => Primitives.objectHashCode(this);
- @patch
+ /**
+ * Returns a string representation of this object.
+ */
String toString() => Primitives.objectToString(this);
- @patch
+ /**
+ * [noSuchMethod] is invoked when users invoke a non-existent method
+ * on an object. The name of the method and the arguments of the
+ * invocation are passed to [noSuchMethod] in an [Invocation].
+ * If [noSuchMethod] returns a value, that value becomes the result of
+ * the original invocation.
+ *
+ * The default behavior of [noSuchMethod] is to throw a
+ * [NoSuchMethodError].
+ */
dynamic noSuchMethod(Invocation invocation) {
throw new NoSuchMethodError(
this,
@@ -73,6 +95,8 @@ class Object {
invocation.namedArguments);
}
- @patch
+ /**
+ * A representation of the runtime type of the object.
+ */
Type get runtimeType => getRuntimeType(this);
}
« no previous file with comments | « test/generated_sdk/lib/core/list.dart ('k') | test/generated_sdk/lib/core/regexp.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698