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

Unified Diff: pkg/compiler/lib/src/js_backend/mirrors_analysis.dart

Issue 2519383002: Handle forwarding constructors of unnamed mixin applications for reflection (Closed)
Patch Set: Created 4 years, 1 month 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 | tests/lib/mirrors/unnamed_mixin_application_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/js_backend/mirrors_analysis.dart
diff --git a/pkg/compiler/lib/src/js_backend/mirrors_analysis.dart b/pkg/compiler/lib/src/js_backend/mirrors_analysis.dart
index 93344f61e0353eba1364fc81ed37c81cf4d412b1..c66c8f1d0a116168e3c28f7cadfb4e2ff6645834 100644
--- a/pkg/compiler/lib/src/js_backend/mirrors_analysis.dart
+++ b/pkg/compiler/lib/src/js_backend/mirrors_analysis.dart
@@ -4,6 +4,7 @@
library dart2js.mirrors_handler;
+import '../common.dart';
import '../common/resolution.dart';
import '../diagnostics/diagnostic_listener.dart';
import '../elements/elements.dart';
@@ -189,8 +190,13 @@ class MirrorsHandler {
lib.forEachLocalMember((Element member) {
if (member.isInjected) return;
if (member.isClass) {
- _enqueueReflectiveElementsInClass(member, recents,
- enclosingWasIncluded: includeLibrary);
+ ClassElement cls = member;
+ cls.ensureResolved(_resolution);
+ do {
+ _enqueueReflectiveElementsInClass(cls, recents,
+ enclosingWasIncluded: includeLibrary);
+ cls = cls.superclass;
+ } while (cls != null && cls.isUnnamedMixinApplication);
} else {
_enqueueReflectiveMember(member, includeLibrary);
}
« no previous file with comments | « no previous file | tests/lib/mirrors/unnamed_mixin_application_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698