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

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

Issue 2981783002: Set 'isSyntheticDefault' for default constructors. (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 3ca9a1fd9a9676ff7eed822b90572874221ea23c..44c612d29266833f808f21898385ee5769373c42 100644
--- a/pkg/front_end/lib/src/fasta/kernel/kernel_target.dart
+++ b/pkg/front_end/lib/src/fasta/kernel/kernel_target.dart
@@ -506,7 +506,8 @@ class KernelTarget extends TargetImplementation {
Constructor makeDefaultConstructor() {
return new Constructor(
new FunctionNode(new EmptyStatement(), returnType: const VoidType()),
- name: new Name(""));
+ name: new Name(""),
+ isSyntheticDefault: true);
}
void finishAllConstructors() {

Powered by Google App Engine
This is Rietveld 408576698