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

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

Issue 2983413002: Resynthesize constructor initializers from Kernel. (Closed)
Patch Set: Created 3 years, 5 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_target.dart
diff --git a/pkg/front_end/lib/src/fasta/kernel/kernel_target.dart b/pkg/front_end/lib/src/fasta/kernel/kernel_target.dart
index 8dcdef41a5285817b78f62670ef1412379af48f9..eb8fb960a849c9c99619fcf836d800884dcfe229 100644
--- a/pkg/front_end/lib/src/fasta/kernel/kernel_target.dart
+++ b/pkg/front_end/lib/src/fasta/kernel/kernel_target.dart
@@ -562,7 +562,8 @@ class KernelTarget extends TargetImplementation {
initializer = new InvalidInitializer();
} else {
initializer =
- new SuperInitializer(superTarget, new Arguments.empty());
+ new SuperInitializer(superTarget, new Arguments.empty())
+ ..isSynthetic = true;
}
constructor.initializers.add(initializer);
initializer.parent = constructor;
@@ -617,7 +618,8 @@ class KernelTarget extends TargetImplementation {
for (Field field in initializedFields.difference(fields.toSet())) {
if (field.initializer == null) {
FieldInitializer initializer =
- new FieldInitializer(field, new NullLiteral());
+ new FieldInitializer(field, new NullLiteral())
+ ..isSynthetic = true;
initializer.parent = constructor;
constructor.initializers.insert(0, initializer);
}

Powered by Google App Engine
This is Rietveld 408576698