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

Unified Diff: pkg/analyzer/test/src/summary/element_text.dart

Issue 2977263002: Resynthesize class fields and accessors from Kernel. (Closed)
Patch Set: Created 3 years, 5 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/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');
« no previous file with comments | « pkg/analyzer/lib/src/dart/element/element.dart ('k') | pkg/analyzer/test/src/summary/resynthesize_common.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698