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

Unified Diff: sdk/lib/_internal/compiler/implementation/js_emitter/class_emitter.dart

Issue 47743011: Substitute types in generic superclasses and interfaces. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased. 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
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/js_emitter/reflection_data_parser.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/js_emitter/class_emitter.dart
diff --git a/sdk/lib/_internal/compiler/implementation/js_emitter/class_emitter.dart b/sdk/lib/_internal/compiler/implementation/js_emitter/class_emitter.dart
index 6ea330edf4b3ca841a15391d92c23f1782a66a0e..888447e66caa738c65a39470f6b349070a9c5854 100644
--- a/sdk/lib/_internal/compiler/implementation/js_emitter/class_emitter.dart
+++ b/sdk/lib/_internal/compiler/implementation/js_emitter/class_emitter.dart
@@ -355,11 +355,15 @@ class ClassEmitter extends CodeEmitterHelper {
if (!backend.isNeededForReflection(classElement)) {
buffer.write(',$n$n"+$reflectionName": 0');
} else {
- List<int> interfaces = <int>[];
+ List<int> types = <int>[];
+ if (classElement.supertype != null) {
+ types.add(
+ task.metadataEmitter.reifyType(classElement.supertype));
+ }
for (DartType interface in classElement.interfaces) {
- interfaces.add(task.metadataEmitter.reifyType(interface));
+ types.add(task.metadataEmitter.reifyType(interface));
}
- buffer.write(',$n$n"+$reflectionName": $interfaces');
+ buffer.write(',$n$n"+$reflectionName": $types');
}
}
}
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/js_emitter/reflection_data_parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698