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

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

Issue 2680303002: Kernel debugging; service tests (Closed)
Patch Set: New failing test 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
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..6ab03d974e1572037cc846ea56f3adc205a345b7 100644
--- a/pkg/kernel/lib/transformations/continuation.dart
+++ b/pkg/kernel/lib/transformations/continuation.dart
@@ -147,6 +147,7 @@ class SyncStarFunctionRewriter extends ContinuationRewriterBase {
..addAll([closureFunction, returnStatement]));
enclosingFunction.body.parent = enclosingFunction;
enclosingFunction.asyncMarker = AsyncMarker.Sync;
+ enclosingFunction.debuggable = false;
return enclosingFunction;
}
@@ -699,6 +700,7 @@ class AsyncStarFunctionRewriter extends AsyncRewriterBase {
enclosingFunction.body = new Block(statements);
enclosingFunction.body.parent = enclosingFunction;
enclosingFunction.asyncMarker = AsyncMarker.Sync;
+ enclosingFunction.debuggable = false;
return enclosingFunction;
}
@@ -852,10 +854,9 @@ class AsyncFunctionRewriter extends AsyncRewriterBase {
var expr = node.expression == null
? new NullLiteral()
: expressionRewriter.rewrite(node.expression, statements);
- statements
- .add(new ExpressionStatement(new VariableSet(returnVariable, expr)));
- statements
- .add(new BreakStatement(labeledBody)..fileOffset = node.fileOffset);
+ statements.add(new ExpressionStatement(
+ new VariableSet(returnVariable, expr)..fileOffset = node.fileOffset));
+ statements.add(new BreakStatement(labeledBody));
return null;
}
}

Powered by Google App Engine
This is Rietveld 408576698