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

Unified Diff: sdk/lib/_internal/compiler/implementation/js_backend/constant_emitter.dart

Issue 27689002: Reapply "Add TypeVariable object on runtime to support reflection on type variables." and … (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix: include classes with members needed for reflection. Created 7 years, 2 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/_internal/compiler/implementation/js_backend/constant_emitter.dart
diff --git a/sdk/lib/_internal/compiler/implementation/js_backend/constant_emitter.dart b/sdk/lib/_internal/compiler/implementation/js_backend/constant_emitter.dart
index bd5c8aabb458d2a6b141f22a4f6143652455f6f6..a8f54b32f77a1fa2a1483007ee77935440f18603 100644
--- a/sdk/lib/_internal/compiler/implementation/js_backend/constant_emitter.dart
+++ b/sdk/lib/_internal/compiler/implementation/js_backend/constant_emitter.dart
@@ -338,7 +338,8 @@ class ConstantInitializerEmitter implements ConstantVisitor<jsAst.Expression> {
RuntimeTypes rti = backend.rti;
Iterable<String> arguments = interface.typeArguments
.toList(growable: false)
- .map((DartType type) => rti.getTypeRepresentation(type, (_){}));
+ .map((DartType type) =>
+ rti.getTypeRepresentationWithHashes(type, (_){}));
jsAst.Expression argumentList =
new jsAst.LiteralString('[${arguments.join(', ')}]');
return new jsAst.Call(getHelperProperty(backend.getSetRuntimeTypeInfo()),

Powered by Google App Engine
This is Rietveld 408576698