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

Unified Diff: lib/core/object.dart

Issue 11231074: Change signature of noSuchMethod to take an InvocationMirror. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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
Index: lib/core/object.dart
diff --git a/lib/core/object.dart b/lib/core/object.dart
index ba41cb81840162b11f00a9e5fbd31f20c63a0c9f..6531e468a865af7ae8f5d7c891807cbc4bcef11d 100644
--- a/lib/core/object.dart
+++ b/lib/core/object.dart
@@ -48,14 +48,15 @@ class Object {
/**
* [noSuchMethod] is invoked when users invoke a non-existant method
* on an object. The name of the method and the arguments of the
- * invocation are passed to [noSuchMethod]. If [noSuchMethod]
- * returns a value, that value becomes the result of the original
- * invocation.
+ * invocation are passed to [noSuchMethod] in an [InvocationMirror].
+ * If [noSuchMethod] returns a value, that value becomes the result of
+ * the original invocation.
*
* The default behavior of [noSuchMethod] is to throw a
* [noSuchMethodError].
*/
- external Dynamic noSuchMethod(String name, List args);
+ external Dynamic noSuchMethod(InvocationMirror invocation);
+
/**
* A representation of the runtime type of the object.
*/

Powered by Google App Engine
This is Rietveld 408576698