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

Unified Diff: tests/compiler/dart2js/serialization_test.dart

Issue 1919143002: Store constant variable initializers in elements. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments. Created 4 years, 8 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/compiler/lib/src/typechecker.dart ('k') | tests/compiler/dart2js/serialization_test_helper.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/serialization_test.dart
diff --git a/tests/compiler/dart2js/serialization_test.dart b/tests/compiler/dart2js/serialization_test.dart
index 9d15022b39684b3e5a246c0cf286c682dc954b2b..7edeb4c55da2c5029a16cbe883578ff96a60cbfa 100644
--- a/tests/compiler/dart2js/serialization_test.dart
+++ b/tests/compiler/dart2js/serialization_test.dart
@@ -440,11 +440,9 @@ class ElementPropertyEquivalence extends BaseElementVisitor<dynamic, Element> {
element1.isConst, element2.isConst);
check(element1, element2, 'isFinal',
element1.isFinal, element2.isFinal);
- if (element1.isConst) {
- checkConstants(
- element1, element2, 'constant',
- element1.constant, element2.constant);
- }
+ checkConstants(
+ element1, element2, 'constant',
+ element1.constant, element2.constant);
check(element1, element2, 'isTopLevel',
element1.isTopLevel, element2.isTopLevel);
check(element1, element2, 'isStatic',
« no previous file with comments | « pkg/compiler/lib/src/typechecker.dart ('k') | tests/compiler/dart2js/serialization_test_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698