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

Unified Diff: tool/input_sdk/lib/core/object.dart

Issue 1952903003: Update object.dart and some comments. (Closed) Base URL: https://github.com/dart-lang/dev_compiler@master
Patch Set: Created 4 years, 7 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 | « lib/runtime/dart_sdk.js ('k') | tool/input_sdk/lib/core/set.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tool/input_sdk/lib/core/object.dart
diff --git a/tool/input_sdk/lib/core/object.dart b/tool/input_sdk/lib/core/object.dart
index 2951a736a0e49167395c5f9eae3cc2fa3061ec16..ae0431e0223648943697b0a0a750c3da8deb421b 100644
--- a/tool/input_sdk/lib/core/object.dart
+++ b/tool/input_sdk/lib/core/object.dart
@@ -13,10 +13,10 @@ part of dart.core;
* When you define a class, you should override [toString]
* to return a string describing an instance of that class.
* You might also need to define [hashCode] and [==], as described in the
- * [Implementing map keys]
- * (http://www.dartlang.org/docs/dart-up-and-running/contents/ch03.html#ch03-implementing-map-keys)
- * section of the [library tour]
- * (http://www.dartlang.org/docs/dart-up-and-running/contents/ch03.html).
+ * [Implementing map
+ * keys](https://www.dartlang.org/docs/dart-up-and-running/ch03.html#implementing-map-keys)
+ * section of the [library
+ * tour](http://www.dartlang.org/docs/dart-up-and-running/contents/ch03.html).
*/
class Object {
/**
@@ -78,14 +78,13 @@ class Object {
external String toString();
/**
- * [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.
+ * Invoked when a non-existent method or property is accessed.
*
- * The default behavior of [noSuchMethod] is to throw a
- * [NoSuchMethodError].
+ * Classes can override [noSuchMethod] to provide custom behavior.
+ *
+ * If a value is returned, it becomes the result of the original invocation.
+ *
+ * The default behavior is to throw a [NoSuchMethodError].
*/
external dynamic noSuchMethod(Invocation invocation);
« no previous file with comments | « lib/runtime/dart_sdk.js ('k') | tool/input_sdk/lib/core/set.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698