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

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

Issue 392873002: Element-model refactoring. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. Created 6 years, 5 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 c7658451370fe80ae9ccfb97155f98f38b9c249b..45b3adac2d1708bf06cde49d48f655bbc75beb05 100644
--- a/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart
+++ b/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart
@@ -417,7 +417,7 @@ class JavaScriptBackend extends Backend {
bool usedByBackend(Element element) {
if (element.isParameter
- || element.isFieldParameter
+ || element.isInitializingFormal
|| element.isField) {
if (usedByBackend(element.enclosingElement)) return true;
}
@@ -425,7 +425,7 @@ class JavaScriptBackend extends Backend {
}
bool invokedReflectively(Element element) {
- if (element.isParameter || element.isFieldParameter) {
+ if (element.isParameter || element.isInitializingFormal) {
ParameterElement parameter = element;
if (invokedReflectively(parameter.functionDeclaration)) return true;
}

Powered by Google App Engine
This is Rietveld 408576698