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

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

Issue 2697193008: [Kernel] replace function debuggable field with originalAsyncMarker field (Closed)
Patch Set: 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..298e950455466178c308d3ac1609018404985f81 100644
--- a/pkg/kernel/lib/transformations/continuation.dart
+++ b/pkg/kernel/lib/transformations/continuation.dart
@@ -146,6 +146,7 @@ class SyncStarFunctionRewriter extends ContinuationRewriterBase {
..addAll(variableDeclarations())
..addAll([closureFunction, returnStatement]));
enclosingFunction.body.parent = enclosingFunction;
+ enclosingFunction.originalAsyncMarker = enclosingFunction.asyncMarker;
enclosingFunction.asyncMarker = AsyncMarker.Sync;
return enclosingFunction;
}
@@ -698,6 +699,7 @@ class AsyncStarFunctionRewriter extends AsyncRewriterBase {
enclosingFunction.body = new Block(statements);
enclosingFunction.body.parent = enclosingFunction;
+ enclosingFunction.originalAsyncMarker = enclosingFunction.asyncMarker;
enclosingFunction.asyncMarker = AsyncMarker.Sync;
return enclosingFunction;
}
@@ -820,8 +822,8 @@ class AsyncFunctionRewriter extends AsyncRewriterBase {
enclosingFunction.body = new Block(statements);
enclosingFunction.body.parent = enclosingFunction;
+ enclosingFunction.originalAsyncMarker = enclosingFunction.asyncMarker;
enclosingFunction.asyncMarker = AsyncMarker.Sync;
- enclosingFunction.debuggable = false;
return enclosingFunction;
}

Powered by Google App Engine
This is Rietveld 408576698