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

Unified Diff: lib/src/js/printer.dart

Issue 1069493002: implement opassign, fix bugs in pre/postfix, introduce a let* helper (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 8 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: lib/src/js/printer.dart
diff --git a/lib/src/js/printer.dart b/lib/src/js/printer.dart
index 594916d4db26f62be3769a570921245402f08e89..4553c331a4c5dfb5662f8d68979e8ae395fe1094 100644
--- a/lib/src/js/printer.dart
+++ b/lib/src/js/printer.dart
@@ -838,7 +838,8 @@ class Printer implements NodeVisitor {
out("=>");
if (fun.body is Expression) {
spaceOut();
- fun.body.accept(this);
+ visitNestedExpression(fun.body, ASSIGNMENT,
+ newInForInit: false, newAtStatementBegin: false);
} else {
blockBody(fun.body, needsSeparation: false, needsNewline: false);
}

Powered by Google App Engine
This is Rietveld 408576698