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

Unified Diff: pkg/analyzer/lib/src/summary/idl.dart

Issue 2757143002: The parameter of synthetic setters should inherit 'covariant'. (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « pkg/analyzer/lib/src/summary/format.fbs ('k') | pkg/analyzer/lib/src/summary/link.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/summary/idl.dart
diff --git a/pkg/analyzer/lib/src/summary/idl.dart b/pkg/analyzer/lib/src/summary/idl.dart
index 3f365dc1673ea54729eaa65dda61e5067d0f4472..b59f7a169c000df065e1bd2d69870ca4a6e16f5c 100644
--- a/pkg/analyzer/lib/src/summary/idl.dart
+++ b/pkg/analyzer/lib/src/summary/idl.dart
@@ -824,9 +824,9 @@ abstract class LinkedUnit extends base.SummaryClass {
List<int> get constCycles;
/**
- * List of slot ids (referring to [UnlinkedParam.inheritsCovariantSlot])
- * corresponding to parameters that inherit `@covariant` behavior from a base
- * class.
+ * List of slot ids (referring to [UnlinkedParam.inheritsCovariantSlot] or
+ * [UnlinkedVariable.inheritsCovariantSlot]) corresponding to parameters
+ * that inherit `@covariant` behavior from a base class.
*/
@Id(3)
List<int> get parametersInheritingCovariant;
@@ -3224,6 +3224,17 @@ abstract class UnlinkedVariable extends base.SummaryClass {
int get inferredTypeSlot;
/**
+ * If this is an instance non-final field, a nonzero slot id which is unique
+ * within this compilation unit. If this id is found in
+ * [LinkedUnit.parametersInheritingCovariant], then the parameter of the
+ * synthetic setter inherits `@covariant` behavior from a base class.
+ *
+ * Otherwise, zero.
+ */
+ @Id(15)
+ int get inheritsCovariantSlot;
+
+ /**
* The synthetic initializer function of the variable. Absent if the variable
* does not have an initializer.
*/
« no previous file with comments | « pkg/analyzer/lib/src/summary/format.fbs ('k') | pkg/analyzer/lib/src/summary/link.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698