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

Unified Diff: pkg/analyzer/lib/src/dart/element/element.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
« no previous file with comments | « no previous file | pkg/analyzer/test/src/summary/resynthesize_kernel_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/dart/element/element.dart
diff --git a/pkg/analyzer/lib/src/dart/element/element.dart b/pkg/analyzer/lib/src/dart/element/element.dart
index 362a70720d3982d4657067236374145ae9ad46ef..2fbee68da60f9a319ffb4101d534fa337b768e3a 100644
--- a/pkg/analyzer/lib/src/dart/element/element.dart
+++ b/pkg/analyzer/lib/src/dart/element/element.dart
@@ -4594,6 +4594,9 @@ class FieldElementImpl extends PropertyInducingElementImpl
* Return `true` if this field was explicitly marked as being covariant.
*/
bool get isCovariant {
+ if (_kernel != null) {
+ return _kernel.isCovariant;
+ }
if (_unlinkedVariable != null) {
return _unlinkedVariable.isCovariant;
}
@@ -8218,6 +8221,9 @@ class ParameterElementImpl extends VariableElementImpl
* Return true if this parameter is explicitly marked as being covariant.
*/
bool get isExplicitlyCovariant {
+ if (_kernel != null) {
+ return _kernel.isCovariant;
+ }
if (_unlinkedParam != null) {
return _unlinkedParam.isExplicitlyCovariant;
}
« no previous file with comments | « no previous file | pkg/analyzer/test/src/summary/resynthesize_kernel_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698