Chromium Code Reviews| Index: pkg/kernel/lib/transformations/continuation.dart |
| diff --git a/pkg/kernel/lib/transformations/continuation.dart b/pkg/kernel/lib/transformations/continuation.dart |
| index a8b28205e7d446a47eaba6eb9ee6be33d804d52d..e849a4d19f355f18d2ae738967f2fd61f2b5da88 100644 |
| --- a/pkg/kernel/lib/transformations/continuation.dart |
| +++ b/pkg/kernel/lib/transformations/continuation.dart |
| @@ -128,7 +128,8 @@ class SyncStarFunctionRewriter extends ContinuationRewriterBase { |
| final function = new FunctionNode(buildClosureBody(), |
| positionalParameters: [iteratorVariable], |
| requiredParameterCount: 1, |
| - asyncMarker: AsyncMarker.SyncYielding) |
| + asyncMarker: AsyncMarker.SyncYielding, |
| + dartAsyncMarker: AsyncMarker.Sync) |
|
Kevin Millikin (Google)
2017/03/13 11:20:35
This is a fresh function that doesn't correspond d
|
| ..fileOffset = enclosingFunction.fileOffset |
| ..fileEndOffset = enclosingFunction.fileEndOffset |
| ..returnType = helper.coreTypes.boolClass.rawType; |
| @@ -226,7 +227,8 @@ abstract class AsyncRewriterBase extends ContinuationRewriterBase { |
| final function = new FunctionNode(buildWrappedBody(), |
| positionalParameters: parameters, |
| requiredParameterCount: 0, |
| - asyncMarker: AsyncMarker.SyncYielding) |
| + asyncMarker: AsyncMarker.SyncYielding, |
| + dartAsyncMarker: AsyncMarker.Sync) |
| ..fileOffset = enclosingFunction.fileOffset |
| ..fileEndOffset = enclosingFunction.fileEndOffset; |