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

Unified Diff: pkg/front_end/lib/src/fasta/builder/modifier_builder.dart

Issue 3008463002: Store the covariant keyword flag for parameters and fields into Kernel and resynthesize in analyzer. (Closed)
Patch Set: Update Field in binary. Created 3 years, 4 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/builder/modifier_builder.dart
diff --git a/pkg/front_end/lib/src/fasta/builder/modifier_builder.dart b/pkg/front_end/lib/src/fasta/builder/modifier_builder.dart
index 114a9f680a6d125ccf3ee658ac859ec203fd16bf..8af347b0ba153c2fa71804d9a80dbaa1ba08c75c 100644
--- a/pkg/front_end/lib/src/fasta/builder/modifier_builder.dart
+++ b/pkg/front_end/lib/src/fasta/builder/modifier_builder.dart
@@ -8,6 +8,7 @@ import '../modifier.dart'
show
abstractMask,
constMask,
+ covariantMask,
externalMask,
finalMask,
namedMixinApplicationMask,
@@ -27,6 +28,8 @@ abstract class ModifierBuilder extends Builder {
bool get isConst => (modifiers & constMask) != 0;
+ bool get isCovariant => (modifiers & covariantMask) != 0;
+
bool get isExternal => (modifiers & externalMask) != 0;
bool get isFinal => (modifiers & finalMask) != 0;

Powered by Google App Engine
This is Rietveld 408576698