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

Unified Diff: pkg/front_end/lib/src/fasta/dill/dill_member_builder.dart

Issue 2862223002: Rewrite mixin application handling in Fasta. (Closed)
Patch Set: Update status file. 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/dill/dill_member_builder.dart
diff --git a/pkg/front_end/lib/src/fasta/dill/dill_member_builder.dart b/pkg/front_end/lib/src/fasta/dill/dill_member_builder.dart
index 1c666068d4390c8518a6d03acf7f27af99a819a3..688738807d9d9de6a8897c1c4a59a182bdc8756d 100644
--- a/pkg/front_end/lib/src/fasta/dill/dill_member_builder.dart
+++ b/pkg/front_end/lib/src/fasta/dill/dill_member_builder.dart
@@ -53,6 +53,13 @@ class DillMemberBuilder extends MemberBuilder {
return isConstructor &&
isRedirectingGenerativeConstructorImplementation(member);
}
+
+ bool get isSynthetic {
+ // TODO(ahe): Kernel should eventually support a synthetic bit.
+ return isConstructor &&
+ name == "" &&
+ (charOffset == parent.charOffset || charOffset == -1);
+ }
}
int computeModifiers(Member member) {
« no previous file with comments | « pkg/front_end/lib/src/fasta/dill/dill_class_builder.dart ('k') | pkg/front_end/lib/src/fasta/kernel/kernel_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698