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

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

Issue 2040673002: Resynthesize enum fields lazily. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 6 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/resynthesize_test.dart
diff --git a/pkg/analyzer/test/src/summary/resynthesize_test.dart b/pkg/analyzer/test/src/summary/resynthesize_test.dart
index 2fec70b384eccbbc648b3eef6915d1bdd4ebe514..881ad8f9b8f9232b7bcd667187a39b33d9cf6407 100644
--- a/pkg/analyzer/test/src/summary/resynthesize_test.dart
+++ b/pkg/analyzer/test/src/summary/resynthesize_test.dart
@@ -671,7 +671,9 @@ abstract class AbstractResynthesizeTest extends AbstractSingleUnitTest {
expect(rImpl.evaluationResult, isNull);
} else {
Type rRuntimeType;
- if (rImpl is FunctionElementImpl) {
+ if (rImpl is ConstFieldElementImpl) {
+ rRuntimeType = ConstFieldElementImpl;
+ } else if (rImpl is FunctionElementImpl) {
rRuntimeType = FunctionElementImpl;
} else {
rRuntimeType = rImpl.runtimeType;

Powered by Google App Engine
This is Rietveld 408576698