Index: pkg/analyzer/test/src/summary/element_text.dart |
diff --git a/pkg/analyzer/test/src/summary/element_text.dart b/pkg/analyzer/test/src/summary/element_text.dart |
index b6d8c15a3aa37a3f20e73852f2c03392a2beb085..8d1e305ff313099a0ddd060b905073e49cae762d 100644 |
--- a/pkg/analyzer/test/src/summary/element_text.dart |
+++ b/pkg/analyzer/test/src/summary/element_text.dart |
@@ -646,6 +646,22 @@ class _ElementWriter { |
return; |
} |
+ if (!e.isSynthetic) { |
+ PropertyInducingElement variable = e.variable; |
+ expect(variable, isNotNull); |
+ if (e.isGetter) { |
+ expect(variable.getter, same(e)); |
+ if (variable.setter != null) { |
+ expect(variable.setter.variable, same(variable)); |
+ } |
+ } else { |
+ expect(variable.setter, same(e)); |
+ if (variable.getter != null) { |
+ expect(variable.getter.variable, same(variable)); |
+ } |
+ } |
+ } |
+ |
if (e.enclosingElement is ClassElement) { |
writeDocumentation(e, ' '); |
writeMetadata(e, ' ', '\n'); |