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

Unified Diff: runtime/lib/mirrors_impl.dart

Issue 22625003: Make ClosureMirror handle instances of user-defined classes that implement call. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rebase Created 7 years, 4 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 | « runtime/lib/mirrors.cc ('k') | runtime/vm/bootstrap_natives.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/mirrors_impl.dart
diff --git a/runtime/lib/mirrors_impl.dart b/runtime/lib/mirrors_impl.dart
index 9f48dfd9cba42478e6d0e350d6e70d42b15b8546..7c7331fb53ae502ca2d509235e690ff16e25ca0f 100644
--- a/runtime/lib/mirrors_impl.dart
+++ b/runtime/lib/mirrors_impl.dart
@@ -632,6 +632,14 @@ class _LocalFunctionTypeMirrorImpl extends _LocalClassMirrorImpl
return _simpleName;
}
+ MethodMirror _callMethod;
+ MethodMirror get callMethod {
+ if (_callMethod == null) {
+ _callMethod = this._FunctionTypeMirror_call_method(_reflectee);
+ }
+ return _callMethod;
+ }
+
TypeMirror _returnType = null;
TypeMirror get returnType {
if (_returnType == null) {
@@ -655,6 +663,9 @@ class _LocalFunctionTypeMirrorImpl extends _LocalClassMirrorImpl
String toString() => "FunctionTypeMirror on '${_n(simpleName)}'";
+ MethodMirror _FunctionTypeMirror_call_method(reflectee)
+ native "FunctionTypeMirror_call_method";
+
static Type _FunctionTypeMirror_return_type(reflectee)
native "FunctionTypeMirror_return_type";
« no previous file with comments | « runtime/lib/mirrors.cc ('k') | runtime/vm/bootstrap_natives.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698