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

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

Issue 1924053003: Serialize more properties of ConstructorElement. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: dartfmt 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
Index: tests/compiler/dart2js/serialization_test.dart
diff --git a/tests/compiler/dart2js/serialization_test.dart b/tests/compiler/dart2js/serialization_test.dart
index 7edeb4c55da2c5029a16cbe883578ff96a60cbfa..5e091e91d5d12880d8df6a52323161e0cb25c734 100644
--- a/tests/compiler/dart2js/serialization_test.dart
+++ b/tests/compiler/dart2js/serialization_test.dart
@@ -560,6 +560,24 @@ class ElementPropertyEquivalence extends BaseElementVisitor<dynamic, Element> {
element1.constantConstructor,
element2.constantConstructor);
}
+ check(element1, element2, 'isRedirectingGenerative',
+ element1.isRedirectingGenerative, element2.isRedirectingGenerative);
+ check(element1, element2, 'isRedirectingFactory',
+ element1.isRedirectingFactory, element2.isRedirectingFactory);
+ checkElementIdentities(element1, element2, 'effectiveTarget',
+ element1.effectiveTarget, element2.effectiveTarget);
+ checkElementIdentities(element1, element2, 'definingConstructor',
+ element1.definingConstructor, element2.definingConstructor);
+ check(
+ element1, element2, 'effectiveTargetType',
+ element1.computeEffectiveTargetType(element1.enclosingClass.thisType),
+ element2.computeEffectiveTargetType(element2.enclosingClass.thisType),
+ areTypesEquivalent);
+ checkElementIdentities(element1, element2, 'immediateRedirectionTarget',
+ element1.immediateRedirectionTarget,
+ element2.immediateRedirectionTarget);
+ checkElementIdentities(element1, element2, 'redirectionDeferredPrefix',
+ element1.redirectionDeferredPrefix, element2.redirectionDeferredPrefix);
}
@override

Powered by Google App Engine
This is Rietveld 408576698