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

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

Issue 26472002: Add TypeVariable object on runtime to support reflection on type variables. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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..480283bd5dc4bce8ee04a916034022f546348208 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,7 @@ 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, (_){}));
karlklose 2013/10/14 10:54:43 Long line.
zarah 2013/10/15 14:20:02 Done.
jsAst.Expression argumentList =
new jsAst.LiteralString('[${arguments.join(', ')}]');
return new jsAst.Call(getHelperProperty(backend.getSetRuntimeTypeInfo()),

Powered by Google App Engine
This is Rietveld 408576698