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

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

Issue 23633002: Implementation for ClosureMirror.findInContext. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed comments Created 7 years, 3 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: sdk/lib/mirrors/mirrors.dart
diff --git a/sdk/lib/mirrors/mirrors.dart b/sdk/lib/mirrors/mirrors.dart
index 3737d4a2b3ca345506bd96891cd50944059eb3c1..0b9ebe52901ad6e493209ce56976a73721e9e9c7 100644
--- a/sdk/lib/mirrors/mirrors.dart
+++ b/sdk/lib/mirrors/mirrors.dart
@@ -626,7 +626,7 @@ abstract class ClosureMirror implements InstanceMirror {
* The returned value is the result of invoking the method [reflect] on
* *v*.
*/
- Future<InstanceMirror> findInContext(Symbol name);
+ InstanceMirror findInContext(Symbol name, {ifAbsent: null});
}
/**
« runtime/lib/mirrors.cc ('K') | « runtime/vm/object.cc ('k') | tests/lib/lib.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698