| Index: sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
|
| diff --git a/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart b/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
|
| index f508bfd47aaa92d68fda48c032ae367070e2f03d..2c0a8c981548d18e6fd2db0a86d801e6c36ac1ac 100644
|
| --- a/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
|
| +++ b/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
|
| @@ -2088,6 +2088,21 @@ class CodeEmitterTask extends CompilerTask {
|
| builder.addProperty("@", metadata);
|
| }
|
|
|
| + if (backend.isNeededForReflection(classElement)) {
|
| + Link typeVars = classElement.typeVariables;
|
| + List properties = [];
|
| + for (TypeVariableType typeVar in typeVars) {
|
| + properties.add(js.string(typeVar.name.slowToString()));
|
| + properties.add(js.toExpression(reifyType(typeVar.element.bound)));
|
| + }
|
| +
|
| + ClassElement superclass = classElement.superclass;
|
| + bool hasSuper = superclass != null;
|
| + if ((!properties.isEmpty && !hasSuper) ||
|
| + (hasSuper && superclass.typeVariables != typeVars)) {
|
| + builder.addProperty('<>', new jsAst.ArrayInitializer.from(properties));
|
| + }
|
| + }
|
| List<CodeBuffer> classBuffers = elementBuffers[classElement];
|
| if (classBuffers == null) {
|
| classBuffers = [];
|
|
|