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

Unified Diff: tests/compiler/dart2js/mirrors_used_test.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: tests/compiler/dart2js/mirrors_used_test.dart
diff --git a/tests/compiler/dart2js/mirrors_used_test.dart b/tests/compiler/dart2js/mirrors_used_test.dart
index b1e2ad64630cea73278a4fb590f7737d6d6f19d7..5aec8fa5f8464c2def5d7e3ced9df721f9409785 100644
--- a/tests/compiler/dart2js/mirrors_used_test.dart
+++ b/tests/compiler/dart2js/mirrors_used_test.dart
@@ -98,15 +98,15 @@ void main() {
library.forEachLocalMember((member) {
if (library == compiler.mainApp && member.name == 'Foo') {
Expect.isTrue(
- compiler.backend.isNeededForReflection(member), '$member');
+ compiler.backend.isAccessibleByReflection(member), '$member');
member.forEachLocalMember((classMember) {
Expect.isTrue(
- compiler.backend.isNeededForReflection(classMember),
+ compiler.backend.isAccessibleByReflection(classMember),
'$classMember');
});
} else {
Expect.isFalse(
- compiler.backend.isNeededForReflection(member), '$member');
+ compiler.backend.isAccessibleByReflection(member), '$member');
}
});
}
« no previous file with comments | « tests/compiler/dart2js/mirror_tree_shaking_test.dart ('k') | tests/lib/mirrors/mirrors_used_inheritance_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698