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

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

Issue 2665723002: Implement canonical name scheme in kernel. (Closed)
Patch Set: Address Kevin's comments Created 3 years, 10 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/empty.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 112ea43b8274b3f3e182cc2e99039834e589fcb6..1ad2f4dd47b2ede71b77f45c73bbfc08ad7def4d 100644
--- a/pkg/kernel/lib/transformations/continuation.dart
+++ b/pkg/kernel/lib/transformations/continuation.dart
@@ -117,7 +117,7 @@ class SyncStarFunctionRewriter extends ContinuationRewriterBase {
SyncStarFunctionRewriter(helper, enclosingFunction)
: iteratorVariable = new VariableDeclaration(':iterator')
- ..type = helper.iteratorClass.rawType,
+ ..type = helper.iteratorClass.rawType,
super(helper, enclosingFunction);
FunctionNode rewrite() {
@@ -156,8 +156,8 @@ class SyncStarFunctionRewriter extends ContinuationRewriterBase {
// :iterator.isYieldEach=
// and return `true` as long as it did something and `false` when it's done.
return new Block(<Statement>[
- enclosingFunction.body.accept(this),
- new ReturnStatement(new BoolLiteral(false))
+ enclosingFunction.body.accept(this),
+ new ReturnStatement(new BoolLiteral(false))
]);
}
@@ -786,8 +786,8 @@ class AsyncFunctionRewriter extends AsyncRewriterBase {
}
}
var completerTypeArguments = <DartType>[returnType];
- var completerType = new InterfaceType(
- helper.completerClass, completerTypeArguments);
+ var completerType =
+ new InterfaceType(helper.completerClass, completerTypeArguments);
// final Completer<T> :completer = new Completer<T>.sync();
completerVariable = new VariableDeclaration(":completer",
@@ -798,8 +798,7 @@ class AsyncFunctionRewriter extends AsyncRewriterBase {
type: completerType);
statements.add(completerVariable);
- returnVariable = new VariableDeclaration(
- ":return_value", type: returnType);
+ returnVariable = new VariableDeclaration(":return_value", type: returnType);
statements.add(returnVariable);
setupAsyncContinuations(statements);
« no previous file with comments | « pkg/kernel/lib/transformations/closure/mock.dart ('k') | pkg/kernel/lib/transformations/empty.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698