Index: pkg/front_end/lib/src/fasta/kernel/kernel_procedure_builder.dart |
diff --git a/pkg/front_end/lib/src/fasta/kernel/kernel_procedure_builder.dart b/pkg/front_end/lib/src/fasta/kernel/kernel_procedure_builder.dart |
index 79df4f8ab61870f81cd66d277bf94abab504b006..210e5a11886da11fda5cb602790742f26eeabbcf 100644 |
--- a/pkg/front_end/lib/src/fasta/kernel/kernel_procedure_builder.dart |
+++ b/pkg/front_end/lib/src/fasta/kernel/kernel_procedure_builder.dart |
@@ -178,7 +178,7 @@ class KernelProcedureBuilder extends KernelFunctionBuilder { |
final Procedure procedure; |
final int charOpenParenOffset; |
- AsyncMarker actualAsyncModifier; |
+ AsyncMarker actualAsyncModifier = AsyncMarker.Sync; |
final ConstructorReferenceBuilder redirectionTarget; |
@@ -189,7 +189,6 @@ class KernelProcedureBuilder extends KernelFunctionBuilder { |
String name, |
List<TypeVariableBuilder> typeVariables, |
List<FormalParameterBuilder> formals, |
- this.actualAsyncModifier, |
ProcedureKind kind, |
KernelLibraryBuilder compilationUnit, |
int charOffset, |
@@ -223,6 +222,7 @@ class KernelProcedureBuilder extends KernelFunctionBuilder { |
if (function != null) { |
// No parent, it's an enum. |
function.asyncMarker = actualAsyncModifier; |
+ function.dartAsyncMarker = actualAsyncModifier; |
Siggi Cherem (dart-lang)
2017/05/18 19:44:03
Note: when `function` is created we will pass Asyn
|
} |
} |