Chromium Code Reviews| 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); |