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

Unified Diff: pkg/compiler/lib/src/cps_ir/shrinking_reductions.dart

Issue 762213002: Support top-level field declaration and assignment in analyzer2dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update comments Created 6 years, 1 month 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: pkg/compiler/lib/src/cps_ir/shrinking_reductions.dart
diff --git a/pkg/compiler/lib/src/cps_ir/shrinking_reductions.dart b/pkg/compiler/lib/src/cps_ir/shrinking_reductions.dart
index 46b64375a718b5d976f74e66cc012164ad02b423..e24a89d615c2d6d8e6ac971503e533937f67fce1 100644
--- a/pkg/compiler/lib/src/cps_ir/shrinking_reductions.dart
+++ b/pkg/compiler/lib/src/cps_ir/shrinking_reductions.dart
@@ -34,6 +34,7 @@ class ShrinkingReducer extends Pass {
/// Applies shrinking reductions to root, mutating root in the process.
void rewriteFieldDefinition(FieldDefinition root) {
+ if (!root.hasInitializer) return;
rewriteExecutableDefinition(root);
}

Powered by Google App Engine
This is Rietveld 408576698