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

Unified Diff: dart/sdk/lib/mirrors/mirrors.dart

Issue 14251021: Move invokeOn to InstanceMirror. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 8 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: dart/sdk/lib/mirrors/mirrors.dart
diff --git a/dart/sdk/lib/mirrors/mirrors.dart b/dart/sdk/lib/mirrors/mirrors.dart
index c5e51d0df75cc589585fd1143c2992f70c32091c..12c06a2034b4884c53e2e6d3c29b141001c8adbb 100644
--- a/dart/sdk/lib/mirrors/mirrors.dart
+++ b/dart/sdk/lib/mirrors/mirrors.dart
@@ -277,6 +277,15 @@ abstract class InstanceMirror implements ObjectMirror {
* exception is thrown.
*/
get reflectee;
+
+ /**
+ * Perform [invocation] on [reflectee].
+ *
+ * If [reflectee] doesn't support the invocation, its [noSuchMethod]
+ * method will be called with either [invocation] or another
+ * equivalent instance of [Invocation].
+ */
+ delegate(Invocation invocation);
}
/**
« no previous file with comments | « dart/sdk/lib/core/invocation.dart ('k') | dart/tests/compiler/dart2js_native/native_no_such_method_exception3_frog_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698