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

Unified Diff: sdk/lib/_internal/compiler/implementation/js_backend/type_variable_handler.dart

Issue 340783011: Take inheritance into account when computing the elements accessible by mirrors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rebased + fixes Created 6 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: sdk/lib/_internal/compiler/implementation/js_backend/type_variable_handler.dart
diff --git a/sdk/lib/_internal/compiler/implementation/js_backend/type_variable_handler.dart b/sdk/lib/_internal/compiler/implementation/js_backend/type_variable_handler.dart
index 8f3a3786a4c6efa0b0e7a52082f1497ba4577804..c7443ac3c8f27e87c95877933a662d7c6934dc66 100644
--- a/sdk/lib/_internal/compiler/implementation/js_backend/type_variable_handler.dart
+++ b/sdk/lib/_internal/compiler/implementation/js_backend/type_variable_handler.dart
@@ -53,12 +53,12 @@ class TypeVariableHandler {
bool hasMemberNeededForReflection(ClassElement cls) {
bool result = false;
cls.implementation.forEachMember((ClassElement cls, Element member) {
- result = result || backend.isNeededForReflection(member);
+ result = result || backend.referencedFromMirrorSystem(member);
});
return result;
}
- if (!backend.isNeededForReflection(cls) &&
+ if (!backend.referencedFromMirrorSystem(cls) &&
!hasMemberNeededForReflection(cls)) {
return;
}

Powered by Google App Engine
This is Rietveld 408576698