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

Unified Diff: lib/src/compiler/side_effect_analysis.dart

Issue 2016483002: Enable strong mode in DDC, fix all warnings/errors (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « lib/src/compiler/reify_coercions.dart ('k') | lib/src/compiler/type_utilities.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/compiler/side_effect_analysis.dart
diff --git a/lib/src/compiler/side_effect_analysis.dart b/lib/src/compiler/side_effect_analysis.dart
index da5de6bf00f5b91042c56c08585d5932e8a44584..b1f9e4a4df5bfc2f37f759b4fb0226e8154735a0 100644
--- a/lib/src/compiler/side_effect_analysis.dart
+++ b/lib/src/compiler/side_effect_analysis.dart
@@ -38,7 +38,7 @@ bool isStateless(FunctionBody function, Expression node, [AstNode context]) {
if (node is Identifier) {
var e = node.staticElement;
if (e is PropertyAccessorElement) {
- e = e.variable;
+ e = (e as PropertyAccessorElement).variable;
}
if (e is VariableElement && !e.isSynthetic) {
if (e.isFinal) return true;
« no previous file with comments | « lib/src/compiler/reify_coercions.dart ('k') | lib/src/compiler/type_utilities.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698