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

Unified Diff: runtime/lib/mirrors_impl.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_impl.dart
===================================================================
--- runtime/lib/mirrors_impl.dart (revision 21604)
+++ runtime/lib/mirrors_impl.dart (working copy)
@@ -1047,7 +1047,11 @@
return makeLocalInstanceMirror(reflectee);
}
- static ClassMirror reflectClass(Type reflectee) {
- throw new UnimplementedError('reflectClass is not implemented');
+ // Creates a new local ClassMirror.
+ static ClassMirror makeLocalClassMirror(Type key)
+ native "Mirrors_makeLocalClassMirror";
+
+ static ClassMirror reflectClass(Type key) {
+ return makeLocalClassMirror(key);
}
}

Powered by Google App Engine
This is Rietveld 408576698