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

Unified Diff: pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.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/kernel/kernel_shadow_ast.dart
diff --git a/pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart b/pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart
index 3bf38a3d50aeb30d091fea8021c7085ef731e5e5..3a2f8935c4c11cbb273188f35ad30e9944a757b8 100644
--- a/pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart
+++ b/pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart
@@ -2395,6 +2395,7 @@ class KernelVariableDeclaration extends VariableDeclaration
bool isFinal: false,
bool isConst: false,
bool isFieldFormal: false,
+ bool isCovariant: false,
bool isLocalFunction: false})
: _implicitlyTyped = type == null,
_isLocalFunction = isLocalFunction,
@@ -2403,7 +2404,8 @@ class KernelVariableDeclaration extends VariableDeclaration
type: type ?? const DynamicType(),
isFinal: isFinal,
isConst: isConst,
- isFieldFormal: isFieldFormal);
+ isFieldFormal: isFieldFormal,
+ isCovariant: isCovariant);
KernelVariableDeclaration.forValue(
Expression initializer, this._functionNestingLevel)

Powered by Google App Engine
This is Rietveld 408576698