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

Unified Diff: sdk/lib/_internal/compiler/implementation/js_emitter/code_emitter_task.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: 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_emitter/code_emitter_task.dart
diff --git a/sdk/lib/_internal/compiler/implementation/js_emitter/code_emitter_task.dart b/sdk/lib/_internal/compiler/implementation/js_emitter/code_emitter_task.dart
index 3e269a2692823c990cd7e0ff1643165234f170cd..bf5026229585797100c964aceff51d9f9b011f1d 100644
--- a/sdk/lib/_internal/compiler/implementation/js_emitter/code_emitter_task.dart
+++ b/sdk/lib/_internal/compiler/implementation/js_emitter/code_emitter_task.dart
@@ -661,7 +661,8 @@ class CodeEmitterTask extends CompilerTask {
elementOrSelector is Element &&
// Make sure to retain names of unnamed constructors, and
// for common native types.
- (name == '' && backend.isNeededForReflection(elementOrSelector) ||
+ (name == '' &&
Johnni Winther 2014/06/27 07:43:01 Add parentheses around 'name == ... isAccess...(..
herhut 2014/06/27 12:34:38 Done.
+ backend.isAccessibleByReflection(elementOrSelector) ||
_isNativeTypeNeedingReflectionName(elementOrSelector))) {
// TODO(ahe): Enable the next line when I can tell the difference between

Powered by Google App Engine
This is Rietveld 408576698