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

Unified Diff: runtime/lib/mirrors_impl.dart

Issue 196513004: Clean up ClosureMirror.invoke(#call, ...). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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 | « no previous file | tests/lib/lib.status » ('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 bb8b56ee864e6a2a9ee083a5916ab9c368db07f7..1eebbabf8cc20a03ff41c6875b8fe9b9326aae52 100644
--- a/runtime/lib/mirrors_impl.dart
+++ b/runtime/lib/mirrors_impl.dart
@@ -447,12 +447,13 @@ class _LocalClosureMirror extends _LocalInstanceMirror
}
// TODO(12602): Remove this special case.
- delegate(Invocation invocation) {
- if (invocation.isMethod && (invocation.memberName == #call)) {
- return this.apply(invocation.positionalArguments,
- invocation.namedArguments).reflectee;
+ InstanceMirror invoke(Symbol memberName,
+ List positionalArguments,
+ [Map<Symbol, dynamic> namedArguments]) {
+ if (memberName == #call) {
+ return this.apply(positionalArguments, namedArguments);
}
- return super.delegate(invocation);
+ return super.invoke(memberName, positionalArguments, namedArguments);
}
InstanceMirror apply(List<Object> positionalArguments,
« no previous file with comments | « no previous file | tests/lib/lib.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698