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

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

Issue 2439023002: Fix static modifier for synthetic fields coming from summaries. (Closed)
Patch Set: Created 4 years, 2 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/dart/element/element.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/src/summary/resynthesize_common.dart
diff --git a/pkg/analyzer/test/src/summary/resynthesize_common.dart b/pkg/analyzer/test/src/summary/resynthesize_common.dart
index 5f1f61958f6a425ab47b32e094054fcbc7f77e64..bf040c6ea0b03e155d0b2a3491260bc5604495e1 100644
--- a/pkg/analyzer/test/src/summary/resynthesize_common.dart
+++ b/pkg/analyzer/test/src/summary/resynthesize_common.dart
@@ -1259,6 +1259,8 @@ abstract class AbstractResynthesizeTest extends AbstractSingleUnitTest {
} else if (modifier == Modifier.STATIC) {
if (element is ExecutableElement) {
return element.isStatic;
+ } else if (element is FieldElement) {
+ return element.isStatic;
}
return false;
} else if (modifier == Modifier.SYNTHETIC) {
« no previous file with comments | « pkg/analyzer/lib/src/dart/element/element.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698