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

Unified Diff: dart/sdk/lib/_internal/compiler/implementation/lib/js_mirrors.dart

Issue 16645002: Preliminary support for reflecting on generic types. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Remove changes to pkg/serialization Created 7 years, 6 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 | dart/tests/lib/mirrors/generic_list_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/sdk/lib/_internal/compiler/implementation/lib/js_mirrors.dart
diff --git a/dart/sdk/lib/_internal/compiler/implementation/lib/js_mirrors.dart b/dart/sdk/lib/_internal/compiler/implementation/lib/js_mirrors.dart
index 202b255d7f94d068a47d20316bb091d15a6c89f8..db8d87ff9cf09d0e2658e562c1dda3c2fe7fd558 100644
--- a/dart/sdk/lib/_internal/compiler/implementation/lib/js_mirrors.dart
+++ b/dart/sdk/lib/_internal/compiler/implementation/lib/js_mirrors.dart
@@ -198,7 +198,9 @@ InstanceMirror reflect(Object reflectee) {
final Expando<ClassMirror> classMirrors = new Expando<ClassMirror>();
-ClassMirror reflectType(Type key) => reflectClassByName(s('$key'));
+ClassMirror reflectType(Type key) {
+ return reflectClassByName(s('$key'.split('<')[0]));
+}
ClassMirror reflectClassByName(Symbol symbol) {
String className = n(symbol);
« no previous file with comments | « no previous file | dart/tests/lib/mirrors/generic_list_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698