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

Unified Diff: pkg/kernel/lib/binary/ast_to_binary.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/kernel/lib/binary/ast_to_binary.dart
diff --git a/pkg/kernel/lib/binary/ast_to_binary.dart b/pkg/kernel/lib/binary/ast_to_binary.dart
index b1a55e58ba29b308fea6ec75e91bdc2ad28206b4..28bb9fd936eda9a937a0f4b97c5861591424e2c7 100644
--- a/pkg/kernel/lib/binary/ast_to_binary.dart
+++ b/pkg/kernel/lib/binary/ast_to_binary.dart
@@ -475,28 +475,33 @@ class BinaryPrinter extends Visitor {
visitInvalidInitializer(InvalidInitializer node) {
writeByte(Tag.InvalidInitializer);
+ writeByte(node.isSynthetic ? 1 : 0);
}
visitFieldInitializer(FieldInitializer node) {
writeByte(Tag.FieldInitializer);
+ writeByte(node.isSynthetic ? 1 : 0);
writeReference(node.fieldReference);
writeNode(node.value);
}
visitSuperInitializer(SuperInitializer node) {
writeByte(Tag.SuperInitializer);
+ writeByte(node.isSynthetic ? 1 : 0);
writeReference(node.targetReference);
writeNode(node.arguments);
}
visitRedirectingInitializer(RedirectingInitializer node) {
writeByte(Tag.RedirectingInitializer);
+ writeByte(node.isSynthetic ? 1 : 0);
writeReference(node.targetReference);
writeNode(node.arguments);
}
visitLocalInitializer(LocalInitializer node) {
writeByte(Tag.LocalInitializer);
+ writeByte(node.isSynthetic ? 1 : 0);
writeVariableDeclaration(node.variable);
}

Powered by Google App Engine
This is Rietveld 408576698