Index: pkg/compiler/lib/src/js_emitter/metadata_collector.dart |
diff --git a/pkg/compiler/lib/src/js_emitter/metadata_collector.dart b/pkg/compiler/lib/src/js_emitter/metadata_collector.dart |
index 5653db44f4a594e031ff36c410a25e43668c9615..52ea41b2e10b89616fb34655b8449ea52ded5b97 100644 |
--- a/pkg/compiler/lib/src/js_emitter/metadata_collector.dart |
+++ b/pkg/compiler/lib/src/js_emitter/metadata_collector.dart |
@@ -189,11 +189,13 @@ class MetadataCollector implements jsAst.TokenFinalizer { |
return _buildMetadataFunction(element as LibraryElement); |
} |
- jsAst.Fun buildClassMetadataFunction(ClassElement element) { |
+ jsAst.Fun buildClassMetadataFunction(ClassEntity cls) { |
if (!_mirrorsData.mustRetainMetadata || |
- !_mirrorsData.isClassReferencedFromMirrorSystem(element)) { |
+ !_mirrorsData.isClassReferencedFromMirrorSystem(cls)) { |
return null; |
} |
+ // TODO(johnniwinther): Handle class entities. |
+ ClassElement element = cls; |
return _buildMetadataFunction(element); |
} |