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

Unified Diff: sdk/lib/core/object.dart

Issue 1412243011: update docs on noSuchMethod (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 1 month 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/core/object.dart
diff --git a/sdk/lib/core/object.dart b/sdk/lib/core/object.dart
index 2951a736a0e49167395c5f9eae3cc2fa3061ec16..e03ff8e85e9bce056107107327e09c5747c59e94 100644
--- a/sdk/lib/core/object.dart
+++ b/sdk/lib/core/object.dart
@@ -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 | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698