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

Unified Diff: pkg/compiler/lib/src/js_emitter/metadata_collector.dart

Issue 2927043002: Handle `new Object()` in compile_from_dill_test (Closed)
Patch Set: Created 3 years, 6 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: 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);
}

Powered by Google App Engine
This is Rietveld 408576698