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

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

Issue 23641006: Enable type inference when using mirrors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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/backend.dart
diff --git a/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart b/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart
index 47cb9ead4fd2a44d32a208d7ee5f5d68fb52855d..e61daeb928a80e0a5efeb7d44ef786114c6d56ae 100644
--- a/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart
+++ b/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart
@@ -371,7 +371,8 @@ class JavaScriptBackend extends Backend {
|| element.isField()) {
element = element.enclosingElement;
}
- return !helpersUsed.contains(element.declaration);
+ element = element.declaration;
+ return !isNeededForReflection(element) && !helpersUsed.contains(element);
}
bool isInterceptorClass(ClassElement element) {

Powered by Google App Engine
This is Rietveld 408576698