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

Unified Diff: runtime/lib/mirrors_patch.dart

Issue 14118011: - Implement reflectClass. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
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: runtime/lib/mirrors_patch.dart
===================================================================
--- runtime/lib/mirrors_patch.dart (revision 21604)
+++ runtime/lib/mirrors_patch.dart (working copy)
@@ -31,6 +31,16 @@
return _Mirrors.reflect(reflectee);
}
+/**
+ * Returns a [ClassMirror] for the class represented by a Dart
+ * Type object.
+ *
+ * This only works with objects local to the current isolate.
+ */
+patch ClassMirror reflectClass(Type key) {
ahe 2013/04/17 10:40:17 I'd call the argument "type".
+ return _Mirrors.reflectClass(key);
+}
+
patch class MirrorSystem {
/* patch */ static String getName(Symbol symbol) {
return _symbol_dev.Symbol.getName(symbol);

Powered by Google App Engine
This is Rietveld 408576698