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

Unified Diff: pkg/kernel/lib/transformations/continuation.dart

Issue 2820323005: Run formatter on a few frontend and kernel files that hadn't been formatted. (Closed)
Patch Set: Run formatter on a few frontend and kernel files that hadn't been formatted. Created 3 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
« no previous file with comments | « pkg/kernel/lib/transformations/closure/mock.dart ('k') | pkg/kernel/lib/transformations/method_call.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/kernel/lib/transformations/continuation.dart
diff --git a/pkg/kernel/lib/transformations/continuation.dart b/pkg/kernel/lib/transformations/continuation.dart
index 5d958404725dc1fb2a05bf1de41249edb4f5f818..eac8b8866dc61dd9925392c92691f8b1cdee0fe0 100644
--- a/pkg/kernel/lib/transformations/continuation.dart
+++ b/pkg/kernel/lib/transformations/continuation.dart
@@ -410,7 +410,8 @@ abstract class AsyncRewriterBase extends ContinuationRewriterBase {
initEffects[i] = <Statement>[];
if (decl.initializer != null) {
decl.initializer = expressionRewriter.rewrite(
- decl.initializer, initEffects[i])..parent = decl;
+ decl.initializer, initEffects[i])
+ ..parent = decl;
}
isSimple = isSimple && initEffects[i].isEmpty;
}
@@ -420,7 +421,8 @@ abstract class AsyncRewriterBase extends ContinuationRewriterBase {
for (int i = 0; i < length; ++i) {
updateEffects[i] = <Statement>[];
stmt.updates[i] = expressionRewriter.rewrite(
- stmt.updates[i], updateEffects[i])..parent = stmt;
+ stmt.updates[i], updateEffects[i])
+ ..parent = stmt;
isSimple = isSimple && updateEffects[i].isEmpty;
}
@@ -530,8 +532,9 @@ abstract class AsyncRewriterBase extends ContinuationRewriterBase {
}
loopBody.add(
new IfStatement(cond, new Block(newBody), new BreakStatement(labeled)));
- labeled.body = new WhileStatement(
- new BoolLiteral(true), new Block(loopBody))..parent = labeled;
+ labeled.body =
+ new WhileStatement(new BoolLiteral(true), new Block(loopBody))
+ ..parent = labeled;
statements.add(new Block(<Statement>[]
..addAll(temps)
..add(labeled)));
@@ -567,7 +570,8 @@ abstract class AsyncRewriterBase extends ContinuationRewriterBase {
var condition = new AwaitExpression(new MethodInvocation(
new VariableGet(iteratorVariable),
new Name('moveNext'),
- new Arguments(<Expression>[])))..fileOffset = stmt.fileOffset;
+ new Arguments(<Expression>[])))
+ ..fileOffset = stmt.fileOffset;
// var <variable> = iterator.current;
var valueVariable = stmt.variable;
@@ -659,7 +663,8 @@ abstract class AsyncRewriterBase extends ContinuationRewriterBase {
TreeNode visitVariableDeclaration(VariableDeclaration stmt) {
if (stmt.initializer != null) {
stmt.initializer = expressionRewriter.rewrite(
- stmt.initializer, statements)..parent = stmt;
+ stmt.initializer, statements)
+ ..parent = stmt;
}
statements.add(stmt);
return null;
@@ -750,7 +755,8 @@ class AsyncStarFunctionRewriter extends AsyncRewriterBase {
var addExpression = new MethodInvocation(
new VariableGet(controllerVariable),
new Name(stmt.isYieldStar ? 'addStream' : 'add', helper.asyncLibrary),
- new Arguments(<Expression>[expr]))..fileOffset = stmt.fileOffset;
+ new Arguments(<Expression>[expr]))
+ ..fileOffset = stmt.fileOffset;
statements.add(new IfStatement(
addExpression,
« no previous file with comments | « pkg/kernel/lib/transformations/closure/mock.dart ('k') | pkg/kernel/lib/transformations/method_call.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698