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

Unified Diff: pkg/front_end/lib/src/fasta/kernel/kernel_procedure_builder.dart

Issue 2888823004: Remove async modifier from outlines (Closed)
Patch Set: Created 3 years, 7 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/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
}
}

Powered by Google App Engine
This is Rietveld 408576698